cheekybits / genny

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

Support for type names with the full package path #73

Open jamesrr39 opened 3 years ago

jamesrr39 commented 3 years ago

This PR adds support for types that require package imports (i.e. the type will not sit in the same package as the generate code), for example genny gen "ValueType=example.com/a/b.MyType".

My first PR in this repo, please give feedback as appropriate! In accordance with the readme file, I've read the godoc for the parse package and this PR doesn't break or change any of that, and I've added tests for the new methods.