aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/go/bin/bin.go
diff options
context:
space:
mode:
authorGravatar Han-Wen Nienhuys <hanwen@google.com>2015-10-09 17:56:52 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-10-09 18:05:11 +0000
commit47182329400e359a7a6ad5857cf1854a4f9ec720 (patch)
tree002f31a16e5f0299d46b7019fc88122deccfb307 /examples/go/bin/bin.go
parentefb45908bd2a1361f724a78b98b821c2b8c89b66 (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/bin/bin.go')
-rw-r--r--examples/go/bin/bin.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/go/bin/bin.go b/examples/go/bin/bin.go
new file mode 100644
index 0000000000..b0c5917145
--- /dev/null
+++ b/examples/go/bin/bin.go
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "fmt"
+
+ "github_com/user/vendored"
+
+ "github.com/bazelbuild/bazel/examples/go/lib"
+)
+
+func main() {
+ fmt.Println("meaning: ", lib.Meaning())
+ fmt.Println("vendored: ", vendored.Vendored())
+}