Documentation ¶ Index ¶ type Pointer func (q *Pointer) Find(ip string) (res Result) func (q *Pointer) InitIPV4Data() int64 func (q *Pointer) OnlineDownload() (err error) type Result Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pointer ¶ type Pointer struct { Offset uint32 ItemLen uint32 IndexLen uint32 } func (*Pointer) Find ¶ func (q *Pointer) Find(ip string) (res Result) Find ip地址查询对应归属地信息 func (*Pointer) InitIPV4Data ¶ func (q *Pointer) InitIPV4Data() int64 InitIPV4Data 加载 func (*Pointer) OnlineDownload ¶ func (q *Pointer) OnlineDownload() (err error) OnlineDownload 在线下载 type Result ¶ type Result struct { IP string `json:"ip,omitempty"` // 输入的ip地址 Country string `json:"country,omitempty"` // 国家或地区 Area string `json:"area,omitempty"` // 区域 } Result 返回 Source Files ¶ View all Source files download.go ipv4.go Click to show internal directories. Click to hide internal directories.