oschwald / geoip2-golang

Unofficial MaxMind GeoIP2 Reader for Go
ISC License
1.87k stars 193 forks source link

how to see all cities and countries? #30

Closed naliferov closed 7 years ago

oschwald commented 7 years ago

In order to do this, you would need to use maxminddb's traversal feature. However, you likely would be better off getting the cities and countries from the CSV version of the database.

nexcode commented 5 years ago
func (r *Reader) Decode(offset uintptr, result interface{}) error

This method?

oschwald commented 5 years ago

https://godoc.org/github.com/oschwald/maxminddb-golang#Reader.Networks