oschwald / maxminddb-golang

MaxMind DB Reader for Go
ISC License
570 stars 99 forks source link

Support for creating reader from bytes buffer and fs.FS #123

Closed floriangosse closed 7 months ago

floriangosse commented 7 months ago

It would be quite useful to have support for bytes buffer (bytes[]) and fs.FS as it allows to utilize a variety of options to load the database file. e.g. the embed API.

oschwald commented 7 months ago

You can already use a byte slice via the FromBytes function.

floriangosse commented 7 months ago

I definitly overlooked that. That makes everything I wished possible. 😄