{"id":17227427,"url":"https://github.com/plutov/go-maxmind-geoip","last_synced_at":"2026-07-06T09:31:41.955Z","repository":{"id":141933278,"uuid":"87166695","full_name":"plutov/go-maxmind-geoip","owner":"plutov","description":"Go plugin with MaxMind's free GeoIP2 DB","archived":false,"fork":false,"pushed_at":"2017-04-05T03:27:14.000Z","size":94896,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:52:27.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/plutov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-04T09:03:57.000Z","updated_at":"2017-10-14T12:08:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f7de36e-7767-45a4-bdee-a4acfa977453","html_url":"https://github.com/plutov/go-maxmind-geoip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/plutov/go-maxmind-geoip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plutov%2Fgo-maxmind-geoip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plutov%2Fgo-maxmind-geoip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plutov%2Fgo-maxmind-geoip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plutov%2Fgo-maxmind-geoip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plutov","download_url":"https://codeload.github.com/plutov/go-maxmind-geoip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plutov%2Fgo-maxmind-geoip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35185688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-06T02:00:07.184Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:19:14.979Z","updated_at":"2026-07-06T09:31:41.918Z","avatar_url":"https://github.com/plutov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### For experimental usage only!\n\nThis [project](https://github.com/plutov/go-maxmind-geoip) contains an example with Go plugin which contains free GeoLite2 MaxMind's [database of ip addresses](http://dev.maxmind.com/geoip/geoip2/geolite2/).\n\nIt can find City by IP address.\n\nIt builds single `go-maxmind-geoip.so` plugin file with already included database with help of `go-bindata`.\n\n### How to use in Go\n\nDownload `.so` plugin:\n```\nwget https://raw.githubusercontent.com/plutov/go-maxmind-geoip/master/go-maxmind-geoip.so\n```\n\nUse functions:\n```\np, _ := plugin.Open(\"./go-maxmind-geoip.so\")\ninit, _ := p.Lookup(\"InitDB\")\ninit.(func() error)()\ngc, _ := p.Lookup(\"GetCity\")\ncity, _ := gc.(func(r *http.Request) (string, error))(r)\n```\n\n### Requirements\n\n - Linux or Darwin\n - Go 1.8\n\n### Build\n\n```\n./build.sh\n```\n\n### Run tests\n\n```\ngo test ./example/...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplutov%2Fgo-maxmind-geoip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplutov%2Fgo-maxmind-geoip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplutov%2Fgo-maxmind-geoip/lists"}