4 ms·
Most projects I see put source at the root so it’s straightforward to import and if there is a commandline utility you can build it ends up in ./cmd/main.go or
by pixelrevision 7y ago
Most projects I see put source at the root so it’s straightforward to import and if there is a commandline utility you can build it ends up in ./cmd/main.go or something.
One thing I dislike about go is that the way imports work you often see source code mixed with stuff like docker and make files.
- sagichmal 7y agoNever cmd/main.go, always cmd/binaryname/main.go.