oschwald / geoip2-golang

Unofficial MaxMind GeoIP2 Reader for Go
ISC License
1.89k stars 195 forks source link

try to install geoip2 but got below message #28

Closed webbhlin closed 7 years ago

webbhlin commented 7 years ago

go get error: go get github.com/oschwald/geoip2-golang

github.com/oschwald/geoip2-golang

../github.com/oschwald/geoip2-golang/reader.go:320: r.mmdbReader.Close() used as value

dgryski commented 7 years ago

I think your maxminddb-golang repo is out of date:

https://github.com/oschwald/maxminddb-golang/commit/0656a7cd1b891bb0a07e9a0c818574e0353dbac5

Try

go get -v -u github.com/oschwald/geoip2-golang