BUILD 663 B

1234567891011121314151617181920212223242526272829303132333435
  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 = ["time.go"],
  21. importpath = "go-common/library/time",
  22. tags = ["automanaged"],
  23. )
  24. go_test(
  25. name = "go_default_test",
  26. srcs = ["time_test.go"],
  27. embed = [":go_default_library"],
  28. rundir = ".",
  29. tags = ["automanaged"],
  30. )