BUILD.bazel 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "adapter.go",
  6. "any.go",
  7. "any_array.go",
  8. "any_bool.go",
  9. "any_float.go",
  10. "any_int32.go",
  11. "any_int64.go",
  12. "any_invalid.go",
  13. "any_nil.go",
  14. "any_number.go",
  15. "any_object.go",
  16. "any_str.go",
  17. "any_uint32.go",
  18. "any_uint64.go",
  19. "config.go",
  20. "iter.go",
  21. "iter_array.go",
  22. "iter_float.go",
  23. "iter_int.go",
  24. "iter_object.go",
  25. "iter_skip.go",
  26. "iter_skip_strict.go",
  27. "iter_str.go",
  28. "jsoniter.go",
  29. "pool.go",
  30. "reflect.go",
  31. "reflect_array.go",
  32. "reflect_dynamic.go",
  33. "reflect_extension.go",
  34. "reflect_json_number.go",
  35. "reflect_json_raw_message.go",
  36. "reflect_map.go",
  37. "reflect_marshaler.go",
  38. "reflect_native.go",
  39. "reflect_optional.go",
  40. "reflect_slice.go",
  41. "reflect_struct_decoder.go",
  42. "reflect_struct_encoder.go",
  43. "stream.go",
  44. "stream_float.go",
  45. "stream_int.go",
  46. "stream_str.go",
  47. ],
  48. importmap = "go-common/vendor/github.com/json-iterator/go",
  49. importpath = "github.com/json-iterator/go",
  50. visibility = ["//visibility:public"],
  51. deps = [
  52. "//vendor/github.com/modern-go/concurrent:go_default_library",
  53. "//vendor/github.com/modern-go/reflect2:go_default_library",
  54. ],
  55. )
  56. filegroup(
  57. name = "package-srcs",
  58. srcs = glob(["**"]),
  59. tags = ["automanaged"],
  60. visibility = ["//visibility:private"],
  61. )
  62. filegroup(
  63. name = "all-srcs",
  64. srcs = [":package-srcs"],
  65. tags = ["automanaged"],
  66. visibility = ["//visibility:public"],
  67. )