Additional resources
- Why Generics? https://blog.golang.org/why-generics
- An Introduction to Generics: https://go.dev/blog/intro-generics
- The Next Step for Generics: https://blog.golang.org/generics-next-step
- A Proposal for Adding Generics to Go: https://blog.golang.org/generics-proposal
- All your comparable types: https://go.dev/blog/comparable
- The
constraints
package: https://pkg.go.dev/golang.org/x/exp/constraints - The
cmp
package: https://pkg.go.dev/cmp - The
slices
package: https://pkg.go.dev/slices - The
maps
package: https://pkg.go.dev/maps - The official proposal for the
slices
package (similar proposals exist for other Go features): https://github.com/golang/go/issues/45955
Leave a review!
Enjoying this book? Help readers like you by leaving an Amazon review. Scan the QR code below to get a free eBook of your choice.