Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/loafoe/mmdb

Load MindMax DB files using license key
https://github.com/loafoe/mmdb

geoip2 maxmind-db maxmind-geoip mmdb

Last synced: about 1 month ago
JSON representation

Load MindMax DB files using license key

Awesome Lists containing this project

README

        

# mmdb

Download MindMax database using license key

## usage

```golang
package main

import (
"fmt"
"io/ioutil"
"os"

"github.com/loafoe/mmdb"
)

func main() {
file, err := ioutil.TempFile("", "*.mmdb")
if err != nil {
fmt.Printf("%v\n", err)
return
}

resp, err := mmdb.Download(file.Name(), os.Getenv("LICENSE_KEY"))
if err != nil {
fmt.Printf("%v %v\n", resp, err)
}
fmt.Printf("Done: %s\n", file.Name())
}
```

## license

License is MIT