@@ -0,0 +1,14 @@
package main
import (
"net/http"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.GET("/ping", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{"message": "pong"})
})
r.Run(":8080") // 默认监听 0.0.0.0:8080
}
The note is not visible to the blocked user.