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.
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.