ip

package
v1.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Itoa

func Itoa(ipInt int64) string

Types

type Response

type Response struct {
	XMLName     xml.Name `xml:"query"`
	Text        string   `xml:",chardata"`
	Status      string   `xml:"status"`
	Country     string   `xml:"country"`
	CountryCode string   `xml:"countryCode"`
	Region      string   `xml:"region"`
	RegionName  string   `xml:"regionName"`
	City        string   `xml:"city"`
	Zip         string   `xml:"zip"`
	Lat         string   `xml:"lat"`
	Lon         string   `xml:"lon"`
	Timezone    string   `xml:"timezone"`
	Isp         string   `xml:"isp"`
	Org         string   `xml:"org"`
	As          string   `xml:"as"`
	Query       string   `xml:"query"`
}

func GetInfo

func GetInfo(ip string) (Response, error)

func (Response) String

func (r Response) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL