geo

package
v0.0.0-...-265ede9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoData

type GeoData struct {
	IP       string `json:"query"`
	Status   string `json:"status"`
	Country  string `json:"country"`
	Region   string `json:"regionName"`
	City     string `json:"city"`
	Timezone string `json:"timezone"`
	ISP      string `json:"isp"`
}

func FromAPI

func FromAPI(address ...string) (*GeoData, error)

func FromLocal

func FromLocal(address string) (*GeoData, error)

func Self

func Self() (*GeoData, error)

func (*GeoData) String

func (this *GeoData) String() string

Jump to

Keyboard shortcuts

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