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: 11 months ago
JSON representation
Load MindMax DB files using license key
- Host: GitHub
- URL: https://github.com/loafoe/mmdb
- Owner: loafoe
- License: mit
- Created: 2021-09-21T08:45:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T18:36:47.000Z (over 4 years ago)
- Last Synced: 2025-07-03T11:03:07.908Z (11 months ago)
- Topics: geoip2, maxmind-db, maxmind-geoip, mmdb
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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