github.com/kamoljan/geoip2-golang (go): Package geoip2 provides an easy-to-use API for the MaxMind GeoIP2 and GeoLite2 databases; this package does not support GeoIP Legacy databases.  The strucs provided by this package match the internal structure of the data in the MaxMind databases.  See github.com/oschwald/maxminddb-golang for more advanced used cases.  Example provides a basic example of using the API. Use of the Country method is analogous to that of the City method.
Keywords: geoip2|geolocation|golang