module declares its path as...module declares its path as:
but was required as:
go mod tidymodulehttps://github.com/gorilla/websocketmodulemodule github.com/gorilla/websocketimport "github.com/gorilla/websocket"go mod tidy环境变量:
export GO111MODULE=on
说明已经开启了 v1.11+ 版本的 module 管理方式.
在更新了被依赖包之后, 想要在引用的地方更新
$GOPATH/pkg/mod~/go/pkg/mod$GOPATH/pkg/mod