ipstd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Convenience functions to convert to & from standard library types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAddr

func FromAddr(a netip.Addr) ip.Address

`netip` package to numeric type

func FromIP

func FromIP(a net.IP) ip.Address

`net` package to numeric type

func FromIPMask

func FromIPMask(a net.IPMask) ip.Address

`net` package to numeric type

func ToAddr

func ToAddr(a ip.Address) netip.Addr

Numeric type to `netip` package

func ToIP

func ToIP(a ip.Address) net.IP

Numeric type to `net` package

func ToIPMask

func ToIPMask(a ip.Address) net.IPMask

Numeric type to `net` package

Types

This section is empty.

Jump to

Keyboard shortcuts

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