package main import ( "log" "github.com/gin-gonic/gin" ) func get(c *gin.Context){ //c.ClientIP() log.Println() } func main(){ engine := gin.Default() engine.GET("/", get) engine.Run("0.0.0.0:10000") }