ip2region

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 7 Imported by: 0

README

ip2region

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Region   string
	Province string
	City     string
	Area     string
	Name     string
}

func NewLocation

func NewLocation() *Location

func NewLocationFromCnFull

func NewLocationFromCnFull(name string) *Location

func (*Location) String

func (loc *Location) String() string

type Requestor

type Requestor struct {
	// contains filtered or unexported fields
}

func NewRequestor

func NewRequestor() (*Requestor, error)

func (*Requestor) Query

func (r *Requestor) Query(ip string) (*Location, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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