Beyond the Basics


🙋 Need help? Ask an expert now!

Styling my Code

Go has a style that is in part enforced by the compiler -- things like braces around code blocks, etc. -- and then there are non-critical formatting issues that Go solves for us automatically.

Format your Code

The easiest way to format your code is by running gofmt -w . in your project root directory. This will automatically fix all possible style issues and then persist them.

Edit Me on GitHub!