Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCIDRs

func ParseCIDRs(cidrs string) (v4IPs, v6IPs []string, err error)

ParseCIDRs parses the comma-separated list of CIDRs and returns the IPv4 and IPv6 CIDRs.

func ParseIPAndPrefix

func ParseIPAndPrefix(primaryIP string) (ip string, prefixSize int, err error)

ParseIPAndPrefix parses the primaryIP and returns the IP address and prefix length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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