Documentation ¶
Overview ¶
Package cidrs provides functions for working with CIDRs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterIPSet ¶
func FilterIPSet(cidrs []netip.Prefix, ipSet map[string]struct{}, errHandler func(ip string, err error)) map[string]struct{}
FilterIPSet filters an IP set by a list of CIDRs. It returns the filtered IP set. If there is an error while parsing an IP address, it will be passed to the errHandler.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.