BUILD 827 B

123456789101112131415161718192021222324252627282930313233343536
  1. load(
  2. "@io_bazel_rules_go//go:def.bzl",
  3. "go_library",
  4. )
  5. package(default_visibility = ["//visibility:public"])
  6. filegroup(
  7. name = "package-srcs",
  8. srcs = glob(["**"]),
  9. tags = ["automanaged"],
  10. visibility = ["//visibility:private"],
  11. )
  12. filegroup(
  13. name = "all-srcs",
  14. srcs = [":package-srcs"],
  15. tags = ["automanaged"],
  16. )
  17. go_library(
  18. name = "go_default_library",
  19. srcs = [
  20. "orm.go",
  21. "timestamp.go",
  22. ],
  23. importpath = "go-common/library/database/orm",
  24. tags = ["automanaged"],
  25. deps = [
  26. "//library/ecode:go_default_library",
  27. "//library/log:go_default_library",
  28. "//library/time:go_default_library",
  29. "//vendor/github.com/go-sql-driver/mysql:go_default_library",
  30. "//vendor/github.com/jinzhu/gorm:go_default_library",
  31. ],
  32. )