I'm using Ubuntu 14.04, and I installed golang, but when I try to use go get
and later go build
my code is not using newly downloaded packages. My project is in ~/workspace/go/src/json_api/
and when I look into a ~/workspace/go/pkg/linux_amd64/github.com/
there is an folder gorilla
and inside are needed files. Is anybody knows how I can repair this?
Here is my go env
:
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/stchvtz/workspace/go/"
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"
and paths from my .bashrc
:
export GOROOT=/usr/local/go
export GOPATH=$HOME/workspace/go/
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin