Code snippets while learning golang.