RANIARANIA Academy

Testing, Building & Deploying Go

Ship production-ready Go binaries with confidence — write table-driven tests and benchmarks, measure coverage, then compile small static binaries, cross-compile for any platform, and package a service in a lean Docker image. You finish able to take Go source and turn it into a tested, configurable, deployable artifact.

Watch the free preview

The testing package and go test — free to watch, no account needed.

Go (Golang) ADVANCED · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Ship production-ready Go binaries from tested source to a deployable artifact
  • Write table-driven tests and benchmarks with the standard testing package
  • Measure and interpret test coverage to find untested code paths
  • Build small static binaries and cross-compile them for other platforms
  • Dockerise and configure a Go service for reliable deployment

Syllabus

Testing Fundamentals in Go
The testing package and go testFree preview15 min
Table-driven tests15 min
Measuring and Optimising Tests
Benchmarks with testing.B15 min
Test coverage15 min
Building Go Binaries
Building static binaries15 min
Cross-compilation15 min
Containerising and Deploying
Dockerising a Go app15 min
Configuration and deploying a service15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min