It is likely I am having GOPATH issues here but I am unable to comprehend
in what way I have failed to set Go up. NUTS!
So I have Go version go1.0.3
Installed via the package installer for Mac OS X (go.1.0.3darwin-amd64.pkg)
GOROOT is /usr/local/go
I have my GOPATH set to /Users/pgonia/Development/projects/go
There I have a src and pkg directory.
I am attempting to install the example sqrt.go source
This source is located in the path $GOPATH/src/ptgSoft/examples/newmath
Running go install from the sources root ./ I get the following message:
go install: no install location for
Running it from $GOPATH/src with go install ptgSoft/examples/newmath yields:
can't load package: package ptgSoft/examples/newmath: import
"ptgSoft/examples/newmath": cannot find package
Again from $GOPATH/src/ptgSoft I get:
can't load package: package examples/newmath: import "examples/newmath":
cannot find package
Clearly I am not understanding the package concept for Go nor the build
process. I have read and re read the documentation I believe is most likely
to provide clarity but I am still missing the concept with go builds.
Thank you in advance.