cidrs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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