BUILD 964 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "base_utils.go",
  11. "limiter.go",
  12. ],
  13. importmap = "go-common/app/service/main/upcredit/mathutil",
  14. importpath = "go-common/app/service/main/upcredit/mathutil",
  15. tags = ["automanaged"],
  16. visibility = ["//visibility:public"],
  17. )
  18. filegroup(
  19. name = "package-srcs",
  20. srcs = glob(["**"]),
  21. tags = ["automanaged"],
  22. visibility = ["//visibility:private"],
  23. )
  24. filegroup(
  25. name = "all-srcs",
  26. srcs = [":package-srcs"],
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:public"],
  29. )
  30. go_test(
  31. name = "go_default_test",
  32. srcs = ["limiter_test.go"],
  33. embed = [":go_default_library"],
  34. rundir = ".",
  35. tags = ["automanaged"],
  36. deps = ["//vendor/github.com/smartystreets/goconvey/convey:go_default_library"],
  37. )