address

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 6 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