oschwald / maxminddb-golang

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

add support for wasm/wasip1 build without mmap support #110

Closed ydnar closed 1 year ago

ydnar commented 1 year ago

Hi, thanks for writing this package. We’ve used it in production at Domainr for a long time. We’re in the midst of porting some of our infrastructure to WebAssembly + WASI, and wanted to contribute a patch.

This PR adds support for wasm + wasip1 builds in Go 1.21 via additional build tags.

I took the liberty of renaming a couple files to better map their use (App Engine being one of many targets without mmap), and updated the doc comments.