BUILD 791 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 = [":package-srcs"],
  16. tags = ["automanaged"],
  17. )
  18. go_library(
  19. name = "go_default_library",
  20. srcs = [
  21. "key.go",
  22. "metadata.go",
  23. ],
  24. importpath = "go-common/library/net/metadata",
  25. tags = ["automanaged"],
  26. )
  27. go_test(
  28. name = "go_default_test",
  29. srcs = ["metadata_test.go"],
  30. embed = [":go_default_library"],
  31. rundir = ".",
  32. tags = ["automanaged"],
  33. deps = ["//vendor/github.com/stretchr/testify/assert:go_default_library"],
  34. )