Documentation
¶
Overview ¶
Package ipinfo provides info on IP address location using the http://ipinfo.io service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPInfo ¶
type IPInfo struct {
IP string `json:"ip"`
Hostname string `json:"hostname"`
City string `json:"city"`
Region string `json:"region"`
Country string `json:"country"`
Loc string `json:"loc"`
Org string `json:"org"`
Postal string `json:"postal"`
}
IPInfo wraps json response
func MyIPWithOptions ¶
MyIP provides information about the public IP address of the client.
Click to show internal directories.
Click to hide internal directories.