You generally shouldn't set GOROOT explicitly. The go command identifies the suitable GOROOT quickly primarily based By itself Listing locale.
// Go software As an example // how to find the length a channel package http://golangtutorial.com/golang-hello-world-writing-your-first-go-program/