The code below shows that Go is only searching for packages in GOROOT. After not finding
//package in GOROOT, ideally, it should look for packages in GOPATH, but it is not.
I have already set GOPATH to my workspace path which includes the folders:
src , and
$ go build main.go main.go:5:2: package controller/userhandler is not in GOROOT (/usr/local/go/src/controller/userhandle