Go Generics 101 (Go 101) by Tapir Liu
English | April 5, 2022 | ISBN: N/A | ASIN: B09XBQNNF2 | 109 pages | PDF, EPUB | 0.54 Mb
English | April 5, 2022 | ISBN: N/A | ASIN: B09XBQNNF2 | 109 pages | PDF, EPUB | 0.54 Mb
Starting from version 1.18, Go has supported custom generics.
This book talks about the custom generics feature of Go programming language. The content in this book includes:
- custom generic syntax
- type constraints and type parameters
- type arguments and type inference
- how to write valid custom generic code
- current implementation/design restrictions
Currently, the book mainly focuses on the syntax of, and concepts in, custom generics. More practical examples will be provided when I get more experiences of using custom generics.