package
0.0.0-20190105051856-0a1854480a11
Repository: https://github.com/cc14514/go-geoip2.git
Documentation: pkg.go.dev
# Functions
FromBytes takes a byte slice corresponding to a MaxMind DB file and returns a Reader structure or an error.
Open takes a string path to a MaxMind DB file and returns a Reader structure or an error.
No description provided by the author
# Constants
NotFound is returned by LookupOffset when a matched root record offset cannot be found.
# Structs
InvalidDatabaseError is returned when the database contains invalid data and cannot be parsed.
Metadata holds the metadata decoded from the MaxMind DB file.
Networks represents a set of subnets that we are iterating over.
Reader holds the data corresponding to the MaxMind DB file.
UnmarshalTypeError is returned when the value in the database cannot be assigned to the specified data type.