Effective Go
go.dev
go.dev
Note added January, 2022: This document was written for Go's release in 2009, and has not been updated significantly since. Although it is a good guide to understand how to use the language itself, thanks to the stability of the language, it says little about the libraries and nothing about significant changes to the Go ecosystem since it was written, such as the build system, testing, modules, and polymorphism. There are no plans to update it, as so much has happened and a large and growing set of documents, blogs, and books do a fine job of describing modern Go usage. Effective Go continues to be useful, but the reader should understand it is far from a complete guide.You can learn a language without learning about $new_feature_x perfectly fine; this is something you can just pick up later. But if you run in to trouble with the first chapter because the commands no longer work then that kind of sucks.
Debugging etc ... juste works out of the box.
---
https://stackoverflow.com/questions/14323872/using-forked-pa...
There are a lot of different approaches listed in here that have changed over time. Different projects evolve at different rates. You might need to become familiar with multiple old ways of dependency management to be really effective.
I went to https://go.dev/doc/
I clicked on "Managing Dependencies" -> "Requiring external module code from your own repository fork"
And arrived at:
https://go.dev/doc/modules/managing-dependencies#external_fo...
Assuming that information is correct - and i'm not in a place to judge that, i just don't have the knowledge unfortunately - that journey felt pretty short and discoverable.
Apparently I’m remembering the old hell.
The replace directive seems to solve the issues with forked projects in particular. [1]
1 - https://github.com/golang/go/wiki/Modules#when-should-i-use-...
I don't understand how this is still a problem for people to understand. It's been the standard for literally years now.
It's actually even better now that go workspaces are a thing.
This is definitely a pain point I've had with golang and the 'accepted' process has changed 3 or 4 times in the last 2 years.
No it hasn't.
Well done Go team.
Effective Go - https://news.ycombinator.com/item?id=28735620 - Oct 2021 (166 comments)
Effective Go - https://news.ycombinator.com/item?id=4285461 - July 2012 (19 comments)
[1] https://web.archive.org/web/20091113154825/http://golang.org...