Skip to content

Commit 7992a44

Browse files
committed
Add a pointer to geoip2. Fixes #22.
1 parent f9b0e46 commit 7992a44

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/4j2f9oep8nnfrmov/branch/master?svg=true)](https://ci.appveyor.com/project/oschwald/maxminddb-golang/branch/master)
55
[![GoDoc](https://godoc.org/github.com/oschwald/maxminddb-golang?status.png)](https://godoc.org/github.com/oschwald/maxminddb-golang)
66

7-
8-
This is a Go reader for the MaxMind DB format. This can be used to read
9-
[GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/) and
10-
[GeoIP2](http://www.maxmind.com/en/geolocation_landing) databases.
7+
This is a Go reader for the MaxMind DB format. Although this can be used to
8+
read [GeoLite2](http://dev.maxmind.com/geoip/geoip2/geolite2/) and
9+
[GeoIP2](https://www.maxmind.com/en/geoip2-databases) databases,
10+
[geoip2](https://github.com/oschwald/geoip2-golang) provides a higher-level
11+
API for doing so.
1112

1213
This is not an official MaxMind API.
1314

decoder.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ func (d *decoder) unmarshalBool(size uint, offset uint, result reflect.Value) (u
136136
}
137137

138138
func (d *decoder) unmarshalBytes(size uint, offset uint, result reflect.Value) (uint, error) {
139-
140139
value, newOffset, err := d.decodeBytes(size, offset)
141140
if err != nil {
142141
return 0, err
@@ -269,7 +268,6 @@ func (d *decoder) unmarshalSlice(size uint, offset uint, result reflect.Value) (
269268
}
270269

271270
func (d *decoder) unmarshalString(size uint, offset uint, result reflect.Value) (uint, error) {
272-
273271
value, newOffset, err := d.decodeString(size, offset)
274272

275273
if err != nil {

0 commit comments

Comments
 (0)