Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + var ErrInvalidIP = errors.New("invalid ip format") + type LocationInfo struct + City string + Country string + Isp string + Region string + type Locator struct + func NewLocator(dataFile string) (loc *Locator, err error) + func NewLocatorWithData(data []byte) (loc *Locator) + func (loc *Locator) Find(ipstr string) (*LocationInfo, error) + func (loc *Locator) FindByUint(ip uint32) (*LocationInfo, error)