geoip

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Longitute float64 `json:"longitude,omitempty"`
	Latitude  float64 `json:"latitude,omitempty"`
	Continent string  `json:"continent,omitempty"`
	Country   string  `json:"country_name,omitempty"`
	City      string  `json:"city,omitempty"`
}

Location holds the result of a geoip request

func Fetch

func Fetch() (Location, error)

Fetch retrieves the location of the system calling this function

Jump to

Keyboard shortcuts

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