Saturday, December 30, 2017

cannot find package "github.com/gorilla/mux"

In Go, while building (go build) I am getting the following error

cannot find package "github.com/gorilla/mux"

Solution:

Login to the server
# go get github.com/gorilla/mux 
# go build

This will  help to fix the package error.

But you may see another error :  cannot download, $GOPATH not set. For more details see: go help gopath

Click the link for the fix

No comments:

Post a Comment