I'm trying to install the context
package in golang, which I did like this :
go get golang.org/x/net/context
But when I do an import "context"
, I still get the following error :
cannot find package "context" in any of:
/usr/lib/go-1.6/src/context (from $GOROOT)
/home/saurabh/work/src/context (from $GOPATH)
Can anyone suggest how to install this package ? I'm currently using version go1.6.2
.