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/lib.go | |
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/lib.go')
-rw-r--r-- | examples/go/lib/lib.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/go/lib/lib.go b/examples/go/lib/lib.go new file mode 100644 index 0000000000..f97e3aefce --- /dev/null +++ b/examples/go/lib/lib.go @@ -0,0 +1,6 @@ +package lib + +// Meaning calculates the meaning of Life, the Universe and Everything. +func Meaning() int { + return 42 +} |