Sorted Go linter that helps your to keep everything sorted it can sort your consts const ( A1 = iota B1 B2 // error A2 A3 B3 B4 // error A4 ) TODO: consts var blocks global funcs something else