Neo Werk
Neo Werk

Reputation: 49

Where is the godef binary?

I am trying to use godef from emacs on OpenSUSE.

Tried to install godef with: go get code.google.com/p/rog-go/exp/cmd/godef

Also tried: go install code.google.com/p/rog-go/exp/cmd/godef

My $GOROOT/bin folder has {go, godoc, gofmt} files, but no godef. There are godef source files in $GOPATH/src/code.google.com/p/rog-go/exp/cmd/godef

Where and how do I get the godef executable?

Upvotes: 4

Views: 5118

Answers (2)

silver spyder
silver spyder

Reputation: 31

go get github.com/rogpeppe/godef should install it for you.

Upvotes: 3

Ryan
Ryan

Reputation: 4921

After running go install some.package, the binary will be placed in $GOPATH/bin

Upvotes: 3

Related Questions