cheekybits / genny

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

[Fixes #18] handle stripping build tags. #21

Closed falun closed 4 years ago

falun commented 8 years ago

Add basic detection of // +build $tag directives and a flag to specify which should be stripped from generated code.=

I had to modify parse.Generics to construct a local copy of the unwanted prefix array as mutating it impacted subsequent test runs.