oracle, such as :GoImplements, :GoCallees, and :GoReferrers are not work
vim-go: /home/wul/golang/src/github.com/nats-io/nats/default_enc.go:6:2: could not import bytes (cannot find package "bytes" in any of:
/usr/local/go/src/pkg/bytes (from $GOROOT)
/home/wul/golang/vendor/src/bytes (from $GOPATH)
/home/wul/golang/src/bytes)
/home/wul/golang/src/github.com/nats-io/nats/default_enc.go:7:2: could not import fmt (cannot find package "fmt" in any of:
/usr/local/go/src/pkg/fmt (from $GOROOT)
/home/wul/golang/vendor/src/fmt (from $GOPATH)
/home/wul/golang/src/fmt)
... ...
It's not import from /usr/local/go/src/(the correct path)
➜ nats git:(master) ls -ld /usr/local/go/src/fmt
drwxr-xr-x 2 root root 4096 2月 18 2015 /usr/local/go/src/fmt
➜ nats git:(master) ls -ld /usr/local/go/src/bytes
drwxr-xr-x 2 root root 4096 2月 18 2015 /usr/local/go/src/bytes
... ...
My Go version and go env:
➜ nats git:(master) go version
go version go1.4.2 linux/amd64
➜ nats git:(master) go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/wul/golang"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
For anyone else tripping on this the solution (at least for me) was running: :GoUpdateBinaries
Most helpful comment
For anyone else tripping on this the solution (at least for me) was running:
:GoUpdateBinaries