I just install golang with homebrew and I am having trouble importing remote packages.
when I try to instal demo.go which contains
import "github.com/bradfitz/gomemcache/memcache"
I get the following error
$ go install
demo.go:3:8: cannot find package "github.com/bradfitz/gomemcache/memcache" in any of:
/usr/local/Cellar/go/1.4/libexec/src/github.com/bradfitz/gomemcache/memcache (from $GOROOT)
/Users/white/go/src/github.com/bradfitz/gomemcache/memcache (from $GOPATH)
To my untrained eyes it looks like it is just looking locally on my GOPATH.
That means you need to get it first:
go get github.com/bradfitz/gomemcache/memcache
That is what the bradfitz/gomemcache
recommends.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With