Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIP ¶
func GetIP(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
GetIP returns a user's public facing IP address (IPv4 OR IPv6).
By default, it will return the IP address in plain text, but can also return data in JSON, JSONP, and XML if requested to.
func MethodNotAllowed ¶
func MethodNotAllowed(w http.ResponseWriter, r *http.Request)
MethodNotAllowed renders a method not allowed response for invalid request types.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.