Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmp ¶
Cmp compares two IPs, returning the usual ordering: a < b : -1 a == b : 0 a > b : 1 incomparable : -2
func Distance ¶
Distance returns amount of IPs between a and b returns -1 if result is negative returns -2 if result is too large or IPs are not valid addresses
func IsBroadcast ¶
IsBroadcast returns true if provided IP is IPv4 Broadcast ip of the network
func NextIPWithOffset ¶
NextIPWithOffset returns IP incremented by offset, if IP is invalid, return nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.