Closed undefined0000000 closed 8 months ago
The error message you're receiving indicates that Go modules are now the recommended way to manage dependencies in Go projects, and the go get command is no longer used to install packages outside of a module.
To install the Gin framework using Go modules, follow these steps:
1 - Initialize a Go module for your project if you haven't already. You can do it in your project directory with the following command:
go mod init myproject
Replace "myproject" with the name of your project.
Once you've initialized a Go module, you can use the go get command to install Gin as a dependency within your module. Run the following command:
go get -u github.com/gin-gonic/gin
See the blog documentation: https://go.dev/doc/tutorial/web-service-gin
Hi everybody. I wanna install gin framework with below command,
go get -u github.com/gin-gonic/gin
but I got errors.
Go is already installed and I was following steps of Gin doc. What is solution?