module
Version:
v0.0.0-...-9477882
Opens a new window with list of versions in this module.
Published: Oct 24, 2019
License: MIT
Opens a new window with license information.
README
¶
ipfmt - ip converter
Convert IP address between 5 standard formats:
- Dotted Hexadecimal
- Dotted Octal
- Undotted Integer
- Undotted Hexadecimal
- Combo in format Hexadecimal.Octal.Integer.Hexadecimal
Usage
# ipfmt 127.0.0.1
ip : 127.0.0.1
hex : 0x7f.0x0.0x0.0x1
octal : 0177.0.0.01
integer : 2130706433
hex (no dotted) : 0x7f000001
combo (h.d.o.h) : 0x7f.0.0.0x1
Build
# make
make -C src all
make[1]: Entering directory '/home/user/code/ipfmt/src'
go build -ldflags "-X main.Version=0.0.1 -X main.Build=`git rev-parse HEAD`" -o ../bin/ipfmt
make[1]: Leaving directory '/home/user/code/ipfmt/src'
# ./bin/ipfmt
Usage:
./bin/ipfmt 127.0.0.1
Directories
¶
Click to show internal directories.
Click to hide internal directories.