netip

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ParseAddr wraps the netip.ParseAddr function
	ParseAddr = netip.ParseAddr
	// MustParsePrefix wraps the netip.MustParsePrefix function
	MustParsePrefix = netip.MustParsePrefix
	// MustParseAddr wraps the netip.MustParseAddr function
	MustParseAddr = netip.MustParseAddr
	// AddrFrom16 wraps the netIP.AddrFrom16 function
	AddrFrom16 = netip.AddrFrom16
)

Functions

This section is empty.

Types

type Addr

type Addr = netip.Addr

Addr wraps a netip.Addr value

func IPv4

func IPv4(a, b, c, d byte) Addr

IPv4 wraps the netip.AddrFrom4 function

type Prefix

type Prefix = netip.Prefix

Prefix wraps a netip.Prefix value

Jump to

Keyboard shortcuts

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