netutil

package
v1.4.0-nextgen.202510.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIDRContainsIP

func CIDRContainsIP(cidrList []*net.IPNet, ip net.IP) (bool, error)

func IsPrivate

func IsPrivate(ip net.IP) bool

func NetAddr2IP

func NetAddr2IP(addr net.Addr) (net.IP, error)

func ParseCIDRList

func ParseCIDRList(strList []string) ([]*net.IPNet, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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