Goipfsaddr doesn't get installed correctly and can not be used in Go

Hello,

I’m trying to run a go script which uses go-ipfs-addr, but it doesn’t install. The go-ipfs directory is installed under my src directory in Go and no matter what I do, I can’t seem to get it on there.
It gives me this error:

go run main.go
main.go:18:2: cannot find package "github.com/ipfs/go-ipfs-addr" in any of:
	/usr/local/Cellar/go/1.10/libexec/src/github.com/ipfs/go-ipfs-addr (from $GOROOT)
	/Users/behrad/go/src/github.com/ipfs/go-ipfs-addr (from $GOPATH)

Thank you in advance

Try running go get github.com/ipfs/go-ipfs-addr before running your script. That fixed it for me.

I already did, it seemed as if it was just an overlap problem with GX and the github directory.