Closed jcrussell closed 6 years ago
This was changed to not use syscall
in https://github.com/oschwald/maxminddb-golang/commit/db462e096565fcf221d34a6506782289b9bf7085. The reason for the change is that syscall
is no longer actively developed and external users of it were asked to switch to golang.org/x/sys
. See this document for more information.
Hadn't heard about syscall
being deprecated -- thanks for the pointer.
Is there a reason to use
golang.org/x/sys/unix.Mmap
instead ofsyscall.Mmap
? I swapped theMmap
andMunmap
calls to syscall and they seemed to work fine.This removes the
golang.org/x/sys/unix
dependency:I can create a PR if you'd like.