diff options
author | Ruben Pollan <meskio@sindominio.net> | 2021-01-25 17:56:26 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-02-25 21:34:10 +0100 |
commit | 0b50eca211bda4d0c1cb28973126f0269288bb71 (patch) | |
tree | 09d374ade952a2366292ec6d8ab8b174b0581a2c /vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go | |
parent | ec03343a76291f10fd2216ef74addff98b9701f9 (diff) |
Use go modules & and devendorize
spring clean for menshen!
Diffstat (limited to 'vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go')
-rw-r--r-- | vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go b/vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go deleted file mode 100644 index d898d25..0000000 --- a/vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go +++ /dev/null @@ -1,15 +0,0 @@ -// +build !windows,!appengine - -package maxminddb - -import ( - "golang.org/x/sys/unix" -) - -func mmap(fd int, length int) (data []byte, err error) { - return unix.Mmap(fd, 0, length, unix.PROT_READ, unix.MAP_SHARED) -} - -func munmap(b []byte) (err error) { - return unix.Munmap(b) -} |