2023/05/17 18:41
Error
cannot find module ……working directory is not part of
Solution
1 run: go mod init src
2 config proxy:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
3 run: go get -u github.com/gin-gonic/gin
2023/05/17 18:41
cannot find module ……working directory is not part of
1 run: go mod init src
2 config proxy:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.io,direct
3 run: go get -u github.com/gin-gonic/gin