oschwald / maxminddb-golang

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

is windows support? #5

Closed saggit closed 9 years ago

saggit commented 9 years ago

hi, man on windows 8, go get github.com/oschwald/maxminddb-golang failed

get the error: maxminddb-golang\reader.go:58: undefined: syscall.Mmap reader.go:58: undefined: syscall.PROT_READ reader.go:58: undefined: syscall.MAP_SHARED ...

is that mean windows is not support yet?

oschwald commented 9 years ago

This package requires Mmap from the syscall package. That said, I think it should be possible to split off that code into a platform-specific package, allowing the support of FromBytes on platforms that don't have Mmap.

There may also be third-party mmap libraries that do support Windows that we could look into integrating.

saggit commented 9 years ago

thanks for reply, i will try to keep search for other lib, do we have any plan to support it?

oschwald commented 9 years ago

This should now work in Windows. Please let me know if you have any problems.