aboutsummaryrefslogtreecommitdiff
path: root/examples/basic-gazelle/pkg/roll/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basic-gazelle/pkg/roll/BUILD.bazel')
-rw-r--r--examples/basic-gazelle/pkg/roll/BUILD.bazel15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/basic-gazelle/pkg/roll/BUILD.bazel b/examples/basic-gazelle/pkg/roll/BUILD.bazel
new file mode 100644
index 00000000..db6f2375
--- /dev/null
+++ b/examples/basic-gazelle/pkg/roll/BUILD.bazel
@@ -0,0 +1,15 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "roll",
+ srcs = ["roll_dice.go"],
+ importpath = "github.com/bazelbuild/rules_go/examples/basic-gazelle/pkg/roll",
+ visibility = ["//visibility:public"],
+ deps = ["@io_k8s_klog_v2//:klog"],
+)
+
+go_test(
+ name = "roll_test",
+ srcs = ["roll_dice_test.go"],
+ embed = [":roll"],
+)