Tags
Language
Tags
April 2025
Su Mo Tu We Th Fr Sa
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
Attention❗ To save your time, in order to download anything on this site, you must be registered 👉 HERE. If you do not have a registration yet, it is better to do it right away. ✌

( • )( • ) ( ͡⚆ ͜ʖ ͡⚆ ) (‿ˠ‿)
SpicyMags.xyz

Go Generics 101 (Go 101)

Posted By: TiranaDok
Go Generics 101 (Go 101)

Go Generics 101 (Go 101) by Tapir Liu
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
A reader needs to be familiar with Go general programming to read this book. In particular, readers of this book should be familiar with Go type system, including Go built-in generics, which and Go custom generics are two different systems.
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.