Go Style: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
{{External|https://google.github.io/styleguide/go/guide#mixedcaps}}
{{External|https://google.github.io/styleguide/go/guide#mixedcaps}}


Camel case are recommended: <code>SomeColor</code> or <code>someColor</code>. Do not use snake case (<code>some_color</code>).
[[Go_Language#Identifiers_.28Names.29|Identifiers]] should use camel case: <code>SomeColor</code> or <code>someColor</code>. Do not use snake case (<code>some_color</code>).

Revision as of 22:39, 18 August 2023

External

Internal

Overview

Identifiers

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

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