https://github.com/fteem/go-geoip
🌎 CLI tool for easy retrieval of geographical information about an IP/hostname
https://github.com/fteem/go-geoip
Last synced: 26 days ago
JSON representation
🌎 CLI tool for easy retrieval of geographical information about an IP/hostname
- Host: GitHub
- URL: https://github.com/fteem/go-geoip
- Owner: fteem
- Created: 2018-01-07T00:50:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T00:50:41.000Z (over 8 years ago)
- Last Synced: 2025-10-09T05:43:10.799Z (8 months ago)
- Language: Go
- Homepage:
- Size: 1.94 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-geoip
A simple CLI tool that fetches geographical information about an IP or a hostname.
The data is fetched by querying [Freegeoip.net](https://freegeoip.net/).
## Usage
The IP/hostname has to be provided using the `-target` option:
```
> go-geoip -target github.com
IP: 192.30.253.112
City: San Francisco (CA)
Country: United States (US)
```
Or
```
> go-geoip -target 192.30.253.112
IP: 192.30.253.112
City: San Francisco (CA)
Country: United States (US)
```