github.com/bazelbuild/bazel-gazelle@v0.36.1-0.20240520142334-61b277ba6fed/pathtools/BUILD.bazel (about) 1 load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3 go_library( 4 name = "pathtools", 5 srcs = ["path.go"], 6 importpath = "github.com/bazelbuild/bazel-gazelle/pathtools", 7 visibility = ["//visibility:public"], 8 ) 9 10 go_test( 11 name = "pathtools_test", 12 srcs = ["path_test.go"], 13 embed = [":pathtools"], 14 ) 15 16 filegroup( 17 name = "all_files", 18 testonly = True, 19 srcs = [ 20 "BUILD.bazel", 21 "path.go", 22 "path_test.go", 23 ], 24 visibility = ["//visibility:public"], 25 ) 26 27 alias( 28 name = "go_default_library", 29 actual = ":pathtools", 30 visibility = ["//visibility:public"], 31 )