Discover Packages
github.com/red-life/ipinfo
internal
ports
package
Version:
v0.0.0-...-d894bde
Opens a new window with list of versions in this module.
Published: Nov 11, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ASN struct {
Number uint `json:"number"`
Organization string `json:"organization"`
}
type City struct {
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
TimeZone string `json:"time_zone"`
}
type Continent struct {
Code string `json:"code"`
Name string `json:"name"`
}
type Country struct {
ISOCode string `json:"iso_code"`
Name string `json:"name"`
}
type Info struct {
IP string `json:"ip"`
Continent *Continent `json:"continent,omitempty"`
Country *Country `json:"country,omitempty"`
City *City `json:"city,omitempty"`
ASN *ASN `json:"asn,omitempty"`
}
type ShortInfo struct {
IP string `json:"ip"`
Country string `json:"country"`
Continent string `json:"continent"`
Location string `json:"location"`
Organization string `json:"org"`
TimeZone string `json:"time_zone"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.