cheekybits / genny

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

Allow to use go:generate $GOPATH/bin/genny #39

Closed LopatkinEvgeniy closed 6 years ago

LopatkinEvgeniy commented 7 years ago

This is frequently used go:generate prefix.

kostix commented 7 years ago

The GOPATH environment variable is defined to include any number of paths to the so-called "Go workplaces", which are searched in order by the relevant go tools, so

$GOPATH/bin/genny

won't fly if the user has their GOPATH set to something like /home/doe/go:/foo/bar/go:/quux/xyzzy/go (on Unix; on Windows they would use the ; as the separator).

Please refer to the output of running go help gopath for more info.