Myip is a simple command tool to obtain the users public IP address using the ipify.org API
A system with Go installed
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
$ myip
20.30.40.50
$ myip -output=json
{"ip":"20.30.40.50"}
$ myip -version
myip, version:0.1