Skip to content

leesutcliffe/myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Myip

Myip is a simple command tool to obtain the users public IP address using the ipify.org API

Prerequisites

A system with Go installed

Installing

Compile the tool as follows

go build

Run the tool from current folder or copy to location in your path, such as /usr/local/bin/

Alternatively, use go install (requires correct configuration of the $GOBIN environment variable)

go install myip

Usage

$ myip
20.30.40.50

$ myip -output=json
{"ip":"20.30.40.50"}

$ myip -version
myip, version:0.1

About

Simple Go API wrapper for ipify.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages