Changes in new versions / Go 1.18
any as an alias for interface{}
Generic function with a type parameter
Type constraint interface with ~
comparable constraint for generic equality
Generic type (struct with a type parameter)
Multiple type parameters
Native fuzzing with testing.F
Generic type (struct with a type parameter)
This example is in the full version, available in the app stores:
Golang Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account