From 0b50eca211bda4d0c1cb28973126f0269288bb71 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 25 Jan 2021 17:56:26 +0100 Subject: Use go modules & and devendorize spring clean for menshen! --- vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go (limited to 'vendor/github.com/oschwald/maxminddb-golang/mmap_unix.go') 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) -} -- cgit v1.2.3