Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
A bunch of other docs I've looked up number of times and found handy:
- Slice tricks: https://github.com/golang/go/wiki/SliceTricks
- Rest of the Golang Github Wiki: https://github.com/golang/go/wiki#additional-go-programming-...
- Spec - very approachable: https://golang.org/ref/spec
- Standard library source code - clean code with lots of idioms to learn from: https://cs.opensource.google/go/go/+/refs/tags/go1.17.1:src/
> What kind of language recommends[0] with a straight face that you just duplicate your entire codebase into a v2/ subdirectory?
Not Go at least. You misunderstood the post completely.
Here is an example of how you are supposed to change the import path for subsequent major versions (that is, backwards incompatible versions): https://github.com/jackc/pgx/blob/3599f646293c1b0d381214ab26...
A one-line change to your modfile and the import path is changed.