Skip to content

kaiyuan-finance/ip_location_finder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ip_location_finder

This README is a quick start document.

What is Ip_location_finder?

Ip-Location-Finder provides a api to easily find the location information of a ip address, including country, province, the provincial capital city and the zip code. The api's route is /search/location, using query param ip. This project loads the ip-location file once just when the server starts. At every api call, ip-location information is got from the memory.

USAGE:

main [global options] command [command options] [arguments...]

Quick Start:

  1. git clone
  2. go mod tidy
  3. go run cmd/main.go start
  4. curl '127.0.0.1:8081/search/location?ip=1.1.255.255'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%