:go get github.com/kataras/iris/v12@latest go: cannot use path@version syntax in GOPATH mode

Remember when installing iris open GO111MODULE and use Chinese agent, set the environment variable in the project path:

export GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

Run the following commands is then mounted iris:

go get github.com/kataras/iris/v12@latest
Published 294 original articles · won praise 13 · views 80000 +

Guess you like

Origin blog.csdn.net/LU_ZHAO/article/details/105211337