In most languages, formatting is a matter of heated debate. In Go, it is a solved problem. The tool gofmt (or go fmt ) automatically handles indentation and spacing. : Go uses tabs for indentation by default.
PDF or online documentation, several key technical sections are mandatory reading for professional-grade work: Effective Go - The Go Programming Language effective go book pdf
Do not just read. Open your terminal.
Here's what you should know: