Testing with golden files in Go

When writing unit tests, there comes a point when you need to check that the complex output of a function matches your expectations. This…