networkutil

package
v0.21.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasIPv4

func HasIPv4(addrs []netip.Addr) bool

HasIPv4 returns true if the list of addresses contains an IPv4 address.

func HasIPv6

func HasIPv6(addrs []netip.Addr) bool

HasIPv6 returns true if the list of addresses contains an IPv6 address.

func ToNetIPAddrs

func ToNetIPAddrs(addrs []stdnet.Addr) (netipAddrs []netip.Addr, ok bool)

ToNetIPAddrs converts a list of net.Addr to a list of netip.Addr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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