package ip import ( "github.com/gin-gonic/gin" "net/http" ) func MyIP(c *gin.Context) { c.JSON(http.StatusOK, c.ClientIP()) }