-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
working directory is not part of a module #2639
Comments
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. |
Ohh my god really thank you it's solved my problem |
I meet the same issue in this QuickStart Could you add the |
|
Hi,
I installed Gin and when i try to go run main.go i get the following error
main.go:6:2: no required module provides package github.com/gin-gonic/gin: working directory is not part of a module
The text was updated successfully, but these errors were encountered: