GO mod not found
Go get 下载包的时候,会报错:go.mod file not found in current directory or any parent directory.
解决方法: 初始化项目, 比如我的项目名称叫 GOWORKSPACE
PS D:\goWorkSpace> go mod init GOWORKSPACE
go: creating new go.mod: module GOWORKSPACE
go: to add module requirements and sums:
go mod tidy
PS D:\goWorkSpace>