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