A nice simple tip, to format your code in the recommended way, make sure you save your program and then run 'go fmt' at the command line.
To tidy up the previous Hello World example program, do the following:
C:\Hello World>go fmt hello.go C:\Hello World>
The command only outputs a file name if the file needed to be reformatted. If you see no output, your file has already been done!
When you next open the source file(s), it should look much tidier!
Updated (06/08/2026)