1 possible answer(s) on “working directory is not part of a module

  1. This is because you need to initialize your go.mod in your project.

    do a go mod init, and then go get github.com/gin-gonic/gin in the console. First command will create the go.mod and go.sum (to keep track of your dependencies) and then the second command will download gin as a dependency for your project.