Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: add/provide resources to a comprehensive go modules guide #30783
Pulling my effing hair out trying to sort thru the nightmare go dependencies are.
After we finally got our package working with dep.. we now have to move to go modules because dep ensure was an absolute nightmare in our CI/CD system with all the kubernetes packages.
I can't find a single example or document or blog that isn't just some simple helloworld example regurgitated from the go modules documentation.
Is there a doc or example of doing this with a complex directory structure with many go packages at varying depths?
Somewhat related: #28215 (website: Update "How to Write Go Code" with go modules). It's targeted Go1.13, since it's when modules will be on by default.
Since it's possible that something like what you're requesting here could be written as part of a doc fix for that issue, you could also give your feedback (i.e. vocalize your request for a more detailed, real-world example of modules use) in that thread.
If you'd like better examples and documentation, I don't think calling the current ones a joke is the way forward. Software can be frustrating, but your issues aren't going to be productive if they read like rants.
Having said that, there are plenty of real-world examples out there to look at, such as: