iputil

package
v0.0.0-...-0e38c20 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoAddressErr = fmt.Errorf("no address could be detected")

NoAddressError

Functions

func ConvertNetIP

func ConvertNetIP(in net.IP) netip.Addr

Types

type IPList

type IPList []netip.Addr

func LocalAddresses

func LocalAddresses() (IPList, error)

func (IPList) Contains

func (i IPList) Contains(ip netip.Addr) bool

Jump to

Keyboard shortcuts

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