cheekybits / genny

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

genny get #7

Closed matryer closed 9 years ago

matryer commented 9 years ago

This works:

wget -q -O - "https://github.com/metabition/gennylib/raw/master/maps/concurrentmap.go" | genny gen "KeyType=BUILTINS ValueType=BUILTINS"

Would be much simpler if it could be this:

genny -out="outfile.go" get maps/concurrentmap "KeyType=BUILTINS ValueType=BUILTINS"

Also validate that go generate works:

//go:generate genny -out="outfile.go" get maps/concurrentmap "KeyType=BUILTINS ValueType=BUILTINS"