cheekybits / genny

Elegant generics for Go
MIT License
1.71k stars 167 forks source link

Allow generation of exported and non exported types from the same generic code. #66

Open jsouthworth opened 3 years ago

jsouthworth commented 3 years ago

It would be nice to not pollute a package's namespace with exported types that are not useable from outside of the package due to the use of internal types for the generic types. One way to do this is to add a 'private' flag to the parse.Generics function and to switch from specificLg to specificSm in subIntoLiteral if this flag is set.