Go Generics in API Design Go 1.18 has finally landed, and with it comes its own flavor of generics. For example, you should try to handle errors before using panic since the latter will end up exiting your program. Since this compiles, we won’t know this broke something until we deploy and get the bug report.

7m read timeFrom bignerdranch.com
Post cover image
Table of contents
Go Generics in API DesignA note on when to use genericsDesigning UpfrontBeing Upfront about itFinal thoughts
1 Comment

Sort: