This is a Go reader for the MaxMind DB format. Although this can be used to read GeoLite2 and GeoIP2 databases, geoip2 provides a higher-level API for doing so.
This is not an official MaxMind API.
go get github.com/oschwald/maxminddb-golang/v2
See GoDoc for documentation and examples.
See GoDoc or
example_test.go
for examples.
Contributions welcome! Please fork the repository and open a pull request with your changes.
This is free software, licensed under the ISC License.