This directory contains a minimal, standalone example using Bazel and rules_go. It shows how to use the go_binary, go_library, and go_test rules without requiring any other dependencies.
To run the binary:
bazel run //:helloTo test the library:
bazel test //:hello_testFor an explanation and an introduction to Bazel, see Bazel Tutorial: Build a Go Project.