package
module
Version:
v0.0.0-...-1197bf1
Opens a new window with list of versions in this module.
Published: Jun 3, 2018
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
This project is a sample project that houses a few functions that make working with CIDR notation a little easier.
How to use
Install the command line tool using go's tool chain:
# optionally add go's bin path to your $PATH
export $PATH=$GOPATH/bin:$PATH
# install cidrc
go install github.com/chuckha/cidrtool/cmd/cidrc
$ cidrc 192.168.1.1/16
Input: 192.168.1.1/16
Lowest IP: 192.168.0.0
Highest IP: 192.168.255.255
Documentation
¶
A package for exploring various ways to work with ipv4 ip addresses.
All references to IP is implied ipv4.
IPToInt converts an IP address (x.x.x.x) to a decimal based integer.
IPToString converts an integer to a regular looking IP address.
Lower finds the lowest address in an ipv4 block.
Upper returns the highest address in an ipv4 block.
Source Files
¶
Directories
¶
cmd
|
|
|
|
Click to show internal directories.
Click to hide internal directories.