I\'m trying to set my $GOPATH variable to run some example code on my machine:
$GOPATH
$ smitego-example go run main.go main.go:5:2: cannot find packag
After installing go with brew or with package this solved my problem:
export GOROOT="/usr/local/go" export GOPATH="$HOME/Documents/goWorkSpace" export PATH="$HOME/Documents/goWorkSpace/bin:$PATH"