README ¶ IP地理位置查询 支持库 GeoLite2 纯真 Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type GeoIP type Result Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type GeoIP ¶ type GeoIP interface { Query(queryIp string) (res Result, err error) } GeoIP 客户端 type Result ¶ type Result struct { IP string `json:"ip"` Country string `json:"country"` // 国家 Province string `json:"province"` // 省 City string `json:"city"` // 城市 ISP string `json:"isp"` // 服务提供商 } Result 归属地信息 Source Files ¶ View all Source files geoip.go Directories ¶ Show internal Expand all Path Synopsis geolite assets qqwry assets Click to show internal directories. Click to hide internal directories.