Versions in this module Expand all Collapse all v8 v8.0.8 May 17, 2024 v8.0.7 Jan 29, 2024 v8.0.6 Jan 29, 2024 v8.0.5 Jan 9, 2024 v8.0.4 Nov 29, 2023 v8.0.3 Nov 15, 2023 v8.0.2 Jun 24, 2023 Changes in this version + const IPLen + const Version + type Detail struct + End IP + IP IP + Start IP + func Find(qqwrySrc, rawIP string) (*Detail, error) + func (detail Detail) Bytes() []byte + func (detail Detail) In(rawIP string) bool + func (detail Detail) InIP(ip IP) bool + func (detail Detail) InUint(uintIP uint32) bool + func (detail Detail) String() string + type IP [IPLen]byte + func ParseBytesIP(b []byte) (ip IP) + func ParseIP(s string) (ip IP, err error) + func ParseUintIP(u uint32) (ip IP) + func (ip IP) Bytes() []byte + func (ip IP) Compare(a IP) int + func (ip IP) ReverseBytes() []byte + func (ip IP) String() string + func (ip IP) Uint() uint32 + type Location struct + City string + Country string + County string + Province string + Region string + func (location Location) Bytes() []byte + func (location Location) GetCity() string + func (location Location) GetCountry() string + func (location Location) GetCounty() string + func (location Location) GetProvince() string + func (location Location) GetRegion() string + func (location Location) String() string + type LocationRaw struct + Mode [2]byte + Pos [2]uint32 + Text [2][]byte + type Locator struct + func Load(b []byte) (loc *Locator, err error) + func LoadWithoutIndexes(b []byte) (loc *Locator, err error) + func Open(qqwrySrc string) (loc *Locator, err error) + func OpenWithoutIndexes(qqwrySrc string) (loc *Locator, err error) + func (loc *Locator) Close() error + func (loc *Locator) Count() int + func (loc *Locator) Find(rawIP string) *Detail + func (loc *Locator) FindIP(ip IP) *Detail + func (loc *Locator) FindUint(uintIP uint32) *Detail + func (loc *Locator) Range(iterator rangeIterator) + type Parser struct + func NewParser(qqwrySrc string, preload bool) (*Parser, error) + func NewParserRes(res resReadCloser, size uint32) (*Parser, error) + func (p *Parser) Close() error + func (p *Parser) Count() uint32 + func (p *Parser) IndexRange(iterator indexIterator) + func (p *Parser) ReadByte(pos int64) byte + func (p *Parser) ReadBytes(pos, n int64) (b []byte) + func (p *Parser) ReadLocationRaw(offset int64) (raw LocationRaw) + func (p *Parser) ReadPosition(offset int64) int64 + func (p *Parser) ReadRegion(offset int64) (s []byte) + func (p *Parser) ReadRegionString(offset int64) string + func (p *Parser) ReadString(offset int64) (string, int) + func (p *Parser) ReadText(offset int64) ([]byte, int) + func (p *Parser) Reader() io.Reader + func (p *Parser) Size() uint32