Skip to main contentAdd Google’s programming language to your Bazel setup, with all the common developer workflows.
This course assumes students have completed Bazel 101.
Bazel provides a hermetic, reproducible build environment for Go, including managing the version of the Go SDK as a Bazel “toolchain”. Since the Go language was developed alongside Bazel (or Blaze, as it’s called at Google), it feels like a more natural fit with Bazel than some other languages.
If your application builds with go build
, it should be straightforward to build it with Bazel instead.
Outline
Getting Started
rules_go and gazelle
Create and run an application
Formatting and Linting
Running Go tools
Deploying containers
More lessons are coming soon:
Editors and IDEs
- simple: generated files in source tree
- Complex: GoPackagesDriver
- GoLand
Debugging
Advanced