3 ms·
I guess it depends on the kinda things you work on, and how you prefer to go. Personally I tend to seperate things logically by using different files within pa
by stevekemp 4y ago
I guess it depends on the kinda things you work on, and how you prefer to go.
Personally I tend to seperate things logically by using different files within packages - so I might have:
foo/
foo/maths.go
foo/strings.go
foo/logical.go
And then sort the implementation of each specific post. This is mentioned in the blog post linked within this thread - author here, though I wouldn't have considered submitting here.
But yes, IDEs do tend to give you an (alphabetical) tree, and personally I'd find it odd if the tree and the contents didn't match.