utils

package
v1.4.0-alpha.0 Latest Latest
Warning

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

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

Documentation

Overview

Package utils provides utility functions for the platform package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPPrefixFrom

func IPPrefixFrom(address, netmask string) (netip.Prefix, error)

IPPrefixFrom make netip.Prefix 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