Documentation ¶
Overview ¶
Package subnet comment should be of this form
Index ¶
- Variables
- type Subnet
- func DedupSorted(ips []Subnet) []Subnet
- func FromIPNet(n *net.IPNet) Subnet
- func Merge(ips []Subnet) []Subnet
- func MergePairs(ips []Subnet) []Subnet
- func MergeSorted(ips []Subnet) []Subnet
- func MustParseCIDR(s string, strict bool) Subnet
- func ParseCIDR(s string, strict bool) (Subnet, error)
- func Sort(ips []Subnet) []Subnet
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIncorrectCIDR = errors.New("CIDR definition incorrect")
ErrIncorrectCIDR exported var should have comment or be unexported
Functions ¶
This section is empty.
Types ¶
type Subnet ¶
Subnet exported type should have comment or be unexported
func DedupSorted ¶
DedupSorted exported func should have comment or be unexported
func MergePairs ¶
MergePairs exported func should have comment or be unexported
func MergeSorted ¶
MergeSorted exported func should have comment or be unexported
func MustParseCIDR ¶
MustParseCIDR exported func should have comment or be unexported
Click to show internal directories.
Click to hide internal directories.