cheekybits / genny

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

-pkg doesn't appear to work #53

Closed ahicks92 closed 5 years ago

ahicks92 commented 5 years ago

The help text and the readme seem to be implying that I can use -pkg to change the package statement at the top of the file, but this doesn't seem to work. I'm using the same template to generate a bunch of API clients for various microservices in different packages, and being able to name the microservice-specific subpackages for the microservices would be nice. At the moment I have to name them all client and alias.

If -pkg is supposed to do something else, then consider this a potential feature request. It's barely mentioned in the first place, so i'm not discounting me misunderstanding what it's for.

pdrum commented 5 years ago

I think -pkg should do what you expect. Will you add some code snippet so that I can reproduce what has gone wrong in your case?

ahicks92 commented 5 years ago

I'd love to, but it is doing what I expect today. I'm assuming that I must have done something incredibly wrong and probably very stupid somewhere along the way.