Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/loafoe/mmdb
- Owner: loafoe
- License: mit
- Created: 2021-09-21T08:45:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T18:36:47.000Z (over 3 years ago)
- Last Synced: 2024-06-21T20:58:08.879Z (6 months ago)
- Topics: geoip2, maxmind-db, maxmind-geoip, mmdb
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- 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 mainimport (
"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