Merge b758ec4717db96c513005a345ff95359754be9fa into 34dac209ffb6ef85cc78c5d217bbb7ad001d68fd

This commit is contained in:
tatakaisun 2026-06-30 18:03:17 +00:00 committed by GitHub
commit 9a88b8faf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,14 +92,21 @@ func main() {
**Running the application:**
1. Save the code above as `main.go`
2. Run the application:
2. Initialize a Go module and download dependencies:
```sh
go mod init example.com/gin-quickstart
go mod tidy
```
3. Run the application:
```sh
go run main.go
```
3. Open your browser and visit [`http://localhost:8080/ping`](http://localhost:8080/ping)
4. You should see: `{"message":"pong"}`
4. Open your browser and visit [`http://localhost:8080/ping`](http://localhost:8080/ping)
5. You should see: `{"message":"pong"}`
**What this example demonstrates:**