#Issue using stringer cli

3 messages · Page 1 of 1 (latest)

meager briar
#

Was go install supposed to add it to my path?
no. it adds it to $GOBIN which defaults to $GOPATH/bin, but it's your responsibility to add that directory to $PATH

tawdry harness
#

That resolved my issue, thanks! I had originally let JetBrains GoLand setup the Go toolchain for me. Turns out, that did not define $GOBIN, $GOPATH, or even add the go executable to the $PATH. It worked inside of GoLand (except for $GOBIN) which is very confusing. I just defined all of these variables properly myself and I now see stringer.exe in my $GOBIN directory. Much appreciated!

meager briar
#

you don't necessarily need to define those variables yourself, even when they're empty they use defaults (~/go on unix)