litgh / atom-godef

Atom package, find definition under current cursor for golang using 'godef'
MIT License
7 stars 5 forks source link

Find godef in $PATH as well #7

Open quark-zju opened 8 years ago

quark-zju commented 8 years ago

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.