It's reasonable that godef is in $PATH but not $GOPATH/bin. For example, a go project that does not want to use any external dependencies may want to set $GOPATH to its project root only.
This situation is similar to npm install vs npm install -g. godef should be a tool globally installed but not inside every project.
It's reasonable that
godef
is in$PATH
but not$GOPATH/bin
. For example, a go project that does not want to use any external dependencies may want to set$GOPATH
to its project root only.This situation is similar to
npm install
vsnpm install -g
.godef
should be a tool globally installed but not inside every project.