08b418b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main import ( "net/http" "github.com/gin-gonic/gin" ) func main() { app := gin.Default() app.GET("/", func(ctx *gin.Context) { ctx.JSON(http.StatusOK, "hello world") }) app.Run(":4037") }