Code snippets to understand GoLang