utils

package
v1.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPPrefixFrom

func IPPrefixFrom(address, netmask string) (netaddr.IPPrefix, error)

IPPrefixFrom make netaddr.IPPrefix from cidr-address and netmask strings. address can be IP or CIDR (1.1.1.1 or 1.1.1.1/8 or 1.1.1.1/255.0.0.0) netmask can be IP or number (255.255.255.0 or 24 or empty).

Types

This section is empty.

Jump to

Keyboard shortcuts

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