Camila Macedo here is a good blog post on unit testing in Go - golang-writing-unit-tests/. It explains it very well.