I am a newbie in GOlang and Hyperledger fabric, I was just configuring the environment. But I got a weird error that is given bellow
user1@NTP-145UBUNTU:~$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/lib/go-1.6/bin"
GORACE=""
GOROOT="/usr/lib/go-1.6"
GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
user1@NTP-145UBUNTU:~$ sudo go get -u github.com/hyperledger/fabric-sdk-go
[sudo] password for user1:
package github.com/hyperledger/fabric-sdk-go: cannot download, $GOPATH not set. For more details see: go help gopath
It is saying that my GOPATH env variable is not set. I have configured it and its is showing in evn variable list also. If anyone in here faced this issue please help me. please note : I am using ubuntu 16 LTS
thanks in advance.