geoip

command module
Version: v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2018 License: MIT Imports: 8 Imported by: 0

README

geoip - IP geolocation with ipdata.co

Build Status Go Report Card codecov GoDoc

Installation

go get -u github.com/andsala/geoip

Usage

$ geoip 8.8.8.8
IP: 8.8.8.8
   United States (US)
   North America (NA)
   Coordinates:     37.751, -97.822

   Flag:            🇺🇸
   Currency:        USD ($)
   Calling code:    +1

   Organization:    Google LLC
   AS number:       AS15169

Options

--api-key, -a value     ipdata.co api key [GEOIP_API_KEY]
--ip-only, --ip         Print current public IP and exit
--json, -j              Print pure json
--no-color              Disable color and emoji output [NO_COLOR] (http://no-color.org)
--user-agent, -u value  HTTP user agent [GEOIP_USER_AGENT]

License

This project is distributed under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to