I am installing go in Ubuntu 14.04 and believe I have my GOPATH$ set right and can't seem to run this go install hello.go file. I got rid of any path errors that I encountered first, but I still am not seeing a successful run
Go is installed in /etc/go
$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/etc/go/packages"
GORACE=""
GOROOT="/etc/go"
GOTOOLDIR="/etc/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"
And here I made the file, edited via nano to copy the hello world example, but when I run it, nothing happens...
$ mkdir -p $GOPATH/src/github.com/hackg
$ nano $GOPATH/src/github.com/hackg/hello/hello.go
$ go install github.com/hackg/hello
$
QUESTION - it is supposed to display hello world there, proving Go is building files properly, but all I get is a fresh terminal prompt ready for a new command, no HELLO WORLD
I tried looking at other stackoverflow posts with no luck - ex Go, Golang : does not make sense that I have to have files before import