Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/janos/mmdb

Go package for downloading MaxMind GeoLite2 databases
https://github.com/janos/mmdb

Last synced: about 1 month ago
JSON representation

Go package for downloading MaxMind GeoLite2 databases

Awesome Lists containing this project

README

        

# Go package for downloading MaxMind GeoLite2 database

[![GoDoc](https://godoc.org/resenje.org/mmdb?status.svg)](https://godoc.org/resenje.org/mmdb)
[![Go](https://github.com/janos/mmdb/workflows/Go/badge.svg)](https://github.com/janos/mmdb/actions?query=workflow%3AGo)

Functions in this package are downloading MaxMind Geolite2 tar archives,
extracting the database file from it to a provided file name, and saving
MD5 sum of tar archive in a file in the same directory as the database file.
MD5 sum is used for checking if the database is updated on the next function
call.

## Installation

```sh
go get resenje.org/mmdb
```