Categorygithub.com/major1201/geo-cli
repositorypackage
0.2.0
Repository: https://github.com/major1201/geo-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

geo-cli

Geo cli tool written in Golang using MaxMind geo data

GoDoc Go Report Card

Installation

$ go install github.com/major1201/geo-cli/cmd/geo

Usage

Download a MaxMind geo data file in https://dev.maxmind.com/geoip/geoip2/geolite2/

Set the environment var

export GEO_MMDBFILE=/opt/GeoLite2-City.mmdb

Query one address in detail

geo --detail 81.2.69.142

Query multiple addresses in one-line format

geo www.google.com 81.2.69.142

Read from pipe

traceroute www.google.com | geo

Specify language

geo --language zh-CN 81.2.69.142

Contributing

Just fork the repositry and open a pull request with your changes.

Licence

MIT