​module declares its path as...​
module declares its path as: 
but was required as:
​go mod tidy​
​module​
​https://github.com/gorilla/websocket​​module​​module github.com/gorilla/websocket​​import "github.com/gorilla/websocket"​
​go mod tidy​

环境变量:

export GO111MODULE=on

说明已经开启了 v1.11+ 版本的 module 管理方式.

在更新了被依赖包之后, 想要在引用的地方更新

​$GOPATH/pkg/mod​
​~/go/pkg/mod​​$GOPATH/pkg/mod​