netiputil

package
v0.0.0-...-ac0c594 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrRange

type AddrRange struct {
	Low, High netip.Addr
}

func ParsePrefix

func ParsePrefix(s string) (r AddrRange, closed bool, err error)

type AddrRangeSet

type AddrRangeSet []AddrRange

func (*AddrRangeSet) Add

func (x *AddrRangeSet) Add(r AddrRange)

func (*AddrRangeSet) AddRange

func (x *AddrRangeSet) AddRange(lo, hi netip.Addr)

func (AddrRangeSet) Contains

func (x AddrRangeSet) Contains(v netip.Addr) bool

Jump to

Keyboard shortcuts

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