Versions in this module Expand all Collapse all v0 v0.0.2 Nov 5, 2023 v0.0.1 Aug 27, 2023 Changes in this version + const NotFound + func SkipAliasedNetworks(networks *Networks) + type InvalidDatabaseError struct + func (e InvalidDatabaseError) Error() string + type Metadata struct + BinaryFormatMajorVersion uint + BinaryFormatMinorVersion uint + BuildEpoch uint + DatabaseType string + Description map[string]string + IPVersion uint + Languages []string + NodeCount uint + RecordSize uint + type Networks struct + func (n *Networks) Err() error + func (n *Networks) Network(result any) (*net.IPNet, error) + func (n *Networks) Next() bool + type NetworksOption func(*Networks) + type Reader struct + Metadata Metadata + func FromBytes(buffer []byte) (*Reader, error) + func Open(file string) (*Reader, error) + func (r *Reader) Close() error + func (r *Reader) Decode(offset uintptr, result any) error + func (r *Reader) Lookup(ip net.IP, result any) error + func (r *Reader) LookupNetwork(ip net.IP, result any) (network *net.IPNet, ok bool, err error) + func (r *Reader) LookupOffset(ip net.IP) (uintptr, error) + func (r *Reader) Networks(options ...NetworksOption) *Networks + func (r *Reader) NetworksWithin(network *net.IPNet, options ...NetworksOption) *Networks + func (r *Reader) Verify() error + type UnmarshalTypeError struct + Type reflect.Type + Value string + func (e UnmarshalTypeError) Error() string