Fork from code.google.com/p/rog-go/exp/cmd/godef