Go Style

From NovaOrdis Knowledge Base
Revision as of 18:49, 6 September 2023 by Ovidiu (talk | contribs) (→‎Naming)
Jump to navigation Jump to search

External

Internal

Overview

The Go standard library is a good source of code examples, comments and style.

Naming

https://google.github.io/styleguide/go/guide#mixedcaps

Naming is one of the most important aspects of Go development. Writing idiomatic Go requires understanding of its core naming principles.

Identifiers should use camel case: SomeColor or someColor. Do not use snake case (some_color).

Naming conventions: