1 2 3 4 5 6 7 8 9 10
-- go.mod -- module example.com/generics go 1.18 -- a/a.go -- package a type Foo[V any] interface { Value() V }