GeoIP2 rest api in golang (Gin) just clone and docker-compose up and star it if you like the work.
-
clone the repository
-
prerequisites - docker and docker-compose or go 1.10 or later installed
-
easy way to get up and running is :
docker-compose up -d --build
or
go build main.go
and run the executable
-> http://localhost:8080/geoip?ip=113.193.190.207
-> http://localhost:8080/geoip?ip=113.193.190.207&ip=2607:f238:2::5