package
Version:
v0.22.0
Opens a new window with list of versions in this module.
Published: Sep 8, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Family represents IP Range family.
const (
InvalidFamily Family = iota
V4Family
V6Family
)
ParseRange parses s as an IP Range, returning the result.
If s is not a valid textual representation of an IP Range,
ParseRange returns nil.
Range represents IP Range.
Contains reports whether net.IP is within Range.
Family returns IP Range family.
Hosts returns number of hosts addresses in the Range.
Hosts returns nil if Range is not valid.
String returns Range string representation.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.