oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
615 stars 101 forks source link

Suggested changes to allow opening database from byte slice #1

Closed oxtoacart closed 10 years ago

oxtoacart commented 10 years ago

I want to run a geolocating service on Heroku, which doesn't have a durable filesystem, so I'd like to actually just fetch the maxmind database from the network at startup and read it into memory. To this end, it's useful to be able to initialize maxminddb (and geoip2) from a byte slice.

I wasn't able to get gocheck to install because of a bzr/Python installation issue, so I can't actually verify that the test runs, but I'm guessing it will.