BUILD 776 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. "go_test",
  5. )
  6. package(default_visibility = ["//visibility:public"])
  7. filegroup(
  8. name = "package-srcs",
  9. srcs = glob(["**"]),
  10. tags = ["automanaged"],
  11. visibility = ["//visibility:private"],
  12. )
  13. filegroup(
  14. name = "all-srcs",
  15. srcs = [
  16. ":package-srcs",
  17. "//library/net/netutil/breaker:all-srcs",
  18. ],
  19. tags = ["automanaged"],
  20. )
  21. go_library(
  22. name = "go_default_library",
  23. srcs = [
  24. "backoff.go",
  25. "listen.go",
  26. ],
  27. importpath = "go-common/library/net/netutil",
  28. tags = ["automanaged"],
  29. )
  30. go_test(
  31. name = "go_default_test",
  32. srcs = ["listen_test.go"],
  33. embed = [":go_default_library"],
  34. rundir = ".",
  35. tags = ["automanaged"],
  36. )