Is there a repository of best practices when it comes to Go? (project/file structure, decoupling)
Is there a repository of best practices when it comes to Go? (project/file structure, decoupling)
Not quite what you’re looking for, but Google does have an official style guide which may be slightly helpful
5 0 ReplyApparently this repo is NOT any sort of standard, yet a lot of people are fooled to believe that based on the repo’s account name and the project’s name. I see this mentioned whenever this is asked… just an FYI…
5 0 ReplySome aspects of that repo are actually language features, such as the pkg and internal directories.
3 0 Replypkg/
isn't a language feature. It's just a popular convention that used to be used in the Go standard library.2 0 Reply
The folks over at changelog have made a quite nice podcast episode about it on gotime: https://changelog.com/gotime/278
I found the conversation to be quite insightful.
1 0 ReplyI often point to Upspin as it's a real-world Go project by folks closely related to the Go project (including Rob Pike).
1 0 Reply