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