cidrcalc

package
v0.0.0-...-85b77b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPRange

type IPRange struct {
	// contains filtered or unexported fields
}

func FromCIDR

func FromCIDR(cidr string) (*IPRange, error)

func (*IPRange) CIDRs

func (a *IPRange) CIDRs() []string

type IPRanges

type IPRanges struct {
	// contains filtered or unexported fields
}

func FromCIDRs

func FromCIDRs(cidrs []string) (*IPRanges, error)

func (*IPRanges) Add

func (a *IPRanges) Add(b *IPRanges) *IPRanges

func (*IPRanges) CIDRs

func (a *IPRanges) CIDRs() []string

func (*IPRanges) Simplify

func (a *IPRanges) Simplify() *IPRanges

func (*IPRanges) Subtract

func (a *IPRanges) Subtract(b *IPRanges) *IPRanges

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL