diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2015-10-09 17:56:52 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-10-09 18:05:11 +0000 |
commit | 47182329400e359a7a6ad5857cf1854a4f9ec720 (patch) | |
tree | 002f31a16e5f0299d46b7019fc88122deccfb307 /examples/go/lib/BUILD | |
parent | efb45908bd2a1361f724a78b98b821c2b8c89b66 (diff) |
Provide an example for the Go rules, eg.
bazel test examples/go/lib:lib_test
bazel build examples/go/bin:bin
--
MOS_MIGRATED_REVID=105070940
Diffstat (limited to 'examples/go/lib/BUILD')
-rw-r--r-- | examples/go/lib/BUILD | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/go/lib/BUILD b/examples/go/lib/BUILD new file mode 100644 index 0000000000..ac982b1145 --- /dev/null +++ b/examples/go/lib/BUILD @@ -0,0 +1,20 @@ +package( + default_visibility = ["//visibility:public"], +) + +load("/tools/build_rules/go/def", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = [ + "lib.go", + ], +) + +go_test( + name = "lib_test", + srcs = [ + "lib_test.go", + ], + library = ":go_default_library", +) |