Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPKey ¶
type IPKey string
IPKey is an immutable cast of a net.IP suitable to be used as a map key. It must be created using IPKey(ip).
func (IPKey) MarshalJSON ¶ added in v2.3.1
func (IPKey) String ¶
String returns the human-readable string form of the IP (as opposed to the binary junk displayed when using it directly).
func (*IPKey) UnmarshalJSON ¶ added in v2.3.1
type IPs ¶
func IPsFromBytesSlice ¶
func UniqueSorted ¶ added in v2.8.0
func (IPs) BytesSlice ¶
BytesSlice is returns a [][]byte copy of the IPs.
func (IPs) UniqueSorted ¶
Click to show internal directories.
Click to hide internal directories.