This library reads MaxMind GeoLite2 and GeoIP2 databases. This library is built using the Go maxminddb reader. All data for the database record is decoded using this library. If you only need several fields, you may get superior performance by using maxminddb's Lookup directly with a result struct that only contains the required fields. (See example_test.go in the maxminddb repository for an example of this.) Metadata takes no arguments and returns a struct containing metadata about the MaxMind database in use by the Reader. Enterprise takes an IP address as a net.IP struct and returns an Enterprise struct and/or an error. This is intended to be used with the GeoIP2 Enterprise database.

Features

  • This is free software
  • Licensed under the ISC license
  • Make sure to check out test data submodule
  • Execute test suite
  • See GoDoc for documentation and examples
  • This library reads MaxMind GeoLite2 and GeoIP2 databases

Project Samples

Project Activity

See All Activity >

Categories

Database

License

ISC License

Follow GeoIP2 Reader for Go

GeoIP2 Reader for Go Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of GeoIP2 Reader for Go!

Additional Project Details

Programming Language

Go

Related Categories

Go Database Software

Registered

2022-07-25