...
1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "pathtools",
5 srcs = ["path.go"],
6 importpath = "github.com/bazelbuild/bazel-gazelle/pathtools",
7 visibility = ["//visibility:public"],
8)
9
10go_test(
11 name = "pathtools_test",
12 srcs = ["path_test.go"],
13 embed = [":pathtools"],
14)
15
16filegroup(
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
27alias(
28 name = "go_default_library",
29 actual = ":pathtools",
30 visibility = ["//visibility:public"],
31)
View as plain text