cheekybits / genny

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

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

Open jsouthworth opened 4 years ago

jsouthworth commented 4 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.