Goland 安装gin出现错误gin.gin.go:2:8: cannot find module providing package github.com/gin-gonic/gin:

gin.go:2:8: cannot find module providing package github.com/gin-gonic/gin: working directory is not part of a module

 

WIN10系统:

首先安装go get -u github.com/gin-gonic/gin

 

然后再工作空间执行

F:\Go_WorkSpace>go mod init  Go_WorkSpace

 

生产产物go.mod即可

 

 

 

 

你可能感兴趣的:(golang)