Modern programming languages include native tools for building and running unit tests on code bases. The Go language has its own such toolset, in the form of the testing module and the go test command.
In this article we’ll cover the basics of writing unit tests using Go, and deploying those tests side-by-side along with the code.
Here is a simple (albeit totally unoptimized) program that calculates Fibonacci sequences in Go.