BUILD.bazel 698 B

1234567891011121314151617181920212223242526272829
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["encode.go"],
  5. importmap = "go-common/vendor/github.com/google/go-querystring/query",
  6. importpath = "github.com/google/go-querystring/query",
  7. visibility = ["//visibility:public"],
  8. )
  9. go_test(
  10. name = "go_default_test",
  11. srcs = ["encode_test.go"],
  12. embed = [":go_default_library"],
  13. )
  14. filegroup(
  15. name = "package-srcs",
  16. srcs = glob(["**"]),
  17. tags = ["automanaged"],
  18. visibility = ["//visibility:private"],
  19. )
  20. filegroup(
  21. name = "all-srcs",
  22. srcs = [":package-srcs"],
  23. tags = ["automanaged"],
  24. visibility = ["//visibility:public"],
  25. )