package
Version:
v2.3.0-rc.1
Opens a new window with list of versions in this module.
Published: May 28, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Parse is like net.ParseIP but converts an IPv4 in 16 byte form to its 4 byte form
SplitToIPPort splits the given address into an IP and a port number. It's
an error if the address is based on a hostname rather than an IP.
IPKey is an immutable cast of a net.IP suitable to be used as a map key. It must be created using IPKey(ip)
String returns the human readable string form of the IP (as opposed to the binary junk displayed when using it directly).
func IPsFromBytesSlice(bss [][]byte) IPs
func (ips IPs) BytesSlice() [][]byte
BytesSlice is returns a [][]byte copy of the IPs
func (ips IPs) UniqueSorted() IPs
Source Files
¶
Click to show internal directories.
Click to hide internal directories.