MaxMind DB Reader for Go
maxminddb.Reader
struct now return an error if
called on a closed database reader. Previously, this could cause a
segmentation violation when using a memory-mapped file.Close
method on the maxminddb.Reader
struct now sets the
underlying buffer to nil, even when using FromBytes
or Open
on
Google App Engine.syscall
libmaxminddb
. All MaxMind databases currently have a depth of less than five.r.Close()
is still recommended for most use cases.[]byte
and string was used to
avoid unnecessary allocations when decoding struct keys. The decoder now
relies on a compiler optimization on string([]byte)
map lookups to achieve
this rather than using unsafe
.New release for those using tagged releases.