address

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package address provides utility functions for address parsing.

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