Categorygithub.com/tonyghita/maxminddb-golang
modulepackage
0.2.0
Repository: https://github.com/tonyghita/maxminddb-golang.git
Documentation: pkg.go.dev

# README

MaxMind DB Reader for Go

Build Status GoDoc

This is a Go reader for the MaxMind DB format. This can be used to read GeoLite2 and GeoIP2 databases.

This is not an official MaxMind API.

Installation

go get github.com/oschwald/maxminddb-golang

Usage

See GoDoc for documentation and examples.

Examples

See GoDoc or example_test.go for examples.

Contributing

Contributions welcome! Please fork the repository and open a pull request with your changes.

License

This is free software, licensed under the Apache License, Version 2.0.

# 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.

# Structs

Metadata holds the metadata decoded from the MaxMind DB file.
Reader holds the data corresponding to the MaxMind DB file.