4 ms·
To be honest, the best method is to find good Go libraries and do some code reading. Not every project will be using best practices, even those created by promi
by petercooper 3y ago
To be honest, the best method is to find good Go libraries and do some code reading. Not every project will be using best practices, even those created by prominent Go developers, but if you read through several libraries, you'll pick things up by osmosis.
That said, https://go.dev/doc/modules/layout https://go.dev/doc/modules/layout and https://github.com/golang-standards/project-layout https://github.com/golang-standards/project-layout may help.