| 1 |
Source: golang-github-oschwald-geoip2-golang-v2 |
| 2 |
Section: golang |
| 3 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 4 |
Uploaders: Eric Dorland <[email protected]>, |
| 5 |
Build-Depends: debhelper-compat (= 13), |
| 6 |
dh-sequence-golang, |
| 7 |
dpkg-build-api (= 1), |
| 8 |
golang-any, |
| 9 |
golang-github-oschwald-maxminddb-golang-v2-dev, |
| 10 |
golang-github-stretchr-testify-dev, |
| 11 |
Testsuite: autopkgtest-pkg-go |
| 12 |
Standards-Version: 4.7.4 |
| 13 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-oschwald-geoip2-golang-v2 |
| 14 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-oschwald-geoip2-golang-v2.git |
| 15 |
Homepage: https://github.com/oschwald/geoip2-golang |
| 16 |
XS-Go-Import-Path: github.com/oschwald/geoip2-golang/v2 |
| 17 |
|
| 18 |
Package: golang-github-oschwald-geoip2-golang-v2-dev |
| 19 |
Architecture: all |
| 20 |
Multi-Arch: foreign |
| 21 |
Depends: golang-github-oschwald-maxminddb-golang-v2-dev, |
| 22 |
golang-github-stretchr-testify-dev, |
| 23 |
${misc:Depends}, |
| 24 |
Description: Unofficial MaxMind GeoIP2 Reader for Go (library) |
| 25 |
GeoIP2 Reader for Go This library reads MaxMind GeoLite2 |
| 26 |
(https://dev.maxmind.com/geoip/geoip2/geolite2/) and GeoIP2 |
| 27 |
(https://www.maxmind.com/en/geolocation_landing) databases. |
| 28 |
. |
| 29 |
This library is built using the Go maxminddb reader |
| 30 |
(https://github.com/oschwald/maxminddb-golang). All data for the |
| 31 |
database |
| 32 |
record is decoded using this library. Version 2.0 provides significant |
| 33 |
performance improvements with 56% fewer allocations and 34% less memory |
| 34 |
usage compared to v1. Version 2.0 also adds Network and IPAddress fields |
| 35 |
to all result structs, and includes a HasData() method to easily check |
| 36 |
if data was found. If you only need several fields, you may get superior |
| 37 |
performance by using maxminddb's Lookup directly with a result struct |
| 38 |
that only contains the required fields. (See example_test.go |
| 39 |
(https://github.com/oschwald/maxminddb-golang/blob/v2/example_test.go) |
| 40 |
in the maxminddb repository for an example of this.) |