Documentation ¶
Index ¶
Constants ¶
View Source
const ( // IndexLen 索引长度 IndexLen = 7 // RedirectMode1 国家的类型, 指向另一个指向 RedirectMode1 = 0x01 // RedirectMode2 国家的类型, 指向一个指向 RedirectMode2 = 0x02 )
Variables ¶
View Source
var IPData fileData
IPData IP库的数据
Functions ¶
func FindIPs ¶
func FindIPs(ips []string) (rs map[string]ResultQQwry)
Types ¶
type QQwry ¶
type QQwry struct { Data *fileData Offset int64 }
QQwry 纯真ip库
type ResultQQwry ¶
type ResultQQwry struct { IP string `json:"ip"` Country string `json:"country"` Area string `json:"area"` }
ResultQQwry 归属地信息
func Find ¶
func Find(ip string) (res ResultQQwry)
Click to show internal directories.
Click to hide internal directories.