Re:A Golang linter to detect functions not in alphabetical o...
by newuserfoobar on Friday November 04, 2022 @03:21AM
(#33463168)
does it mean my func main has to be in a middle of file if I'm just having a single file script? feels weird
[ Parent
| on HN ]
Re:A Golang linter to detect functions not in alphabetical o...
by stevekemp on Friday November 04, 2022 @03:51AM
(#33463324)
Author here - suprised to see this posted - but no, "init" and "main" are excluded because that felt like a step too far.
I admit some people might find it a little bit weird to have to put "New" in the middle of a file though, as usually that would be found near/at the top.