Unit testing with Go-lang is very simple and the
testing library is actually included by default. For test driven development or just for covering the functionality of your code afterwards, unit tests are pretty essential.
This article is about the smallest possible effort we can make to get started with testing. No fancy algorithms or too language specific things, just the bare minimum, so we understand what’s going on and can extend from there on.