Top "Gopath" questions

The GOPATH environment variable is used to specify directories outside of $GOROOT that contain the source for Go projects and their binaries.

What should be the values of GOPATH and GOROOT?

I'm trying to install doozer like this: $ goinstall github.com/ha/doozer I get these errors. goinstall: os: go/build: …

go gopath
golang vendor path cannot find package

I'm building the example program from github.com/tarm/serial. Case 1: It builds ok if the above repo is checked …

go gopath govendor