I'm nitpicking your code.
A really, really nitpicking linter that complains when the code is not organized according to the following very opinionated rules:
-
imports
is the first section- Requires parenthesized declaration,
- One maximum,
- Separated in 3 blocks: standard, external and same package (local).
-
type
is the second section- Requires parenthesized declaration,
- Section must be sorted: exported first, then unexported.
-
const
is the third section- Requires parenthesized declaration,
- Multiple allowed,
- Section must be sorted: exported first, then unexported.
-
var
is the fourth section- Requires parenthesized declaration,
- Section must be sorted: exported first, then unexported.
-
func
is the fifth section- Must be sorted, exported first, then unexported.
-
func
method, is the sixth section- Must be sorted by type, exported first, then unexported.