README ¶ ip2region Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Location func NewLocation() *Location func NewLocationFromCnFull(name string) *Location func (loc *Location) String() string type Requestor func NewRequestor() (*Requestor, error) func (r *Requestor) Query(ip string) (*Location, error) 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) Source Files ¶ View all Source files location.gorequestor.go Directories ¶ Show internal Expand all Path Synopsis assets cmd Click to show internal directories. Click to hide internal directories.