Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 Changes in this version + var ErrAddrNotFound = errors.New("addr not found") + var ErrIfaceNotFound = errors.New("interface not found") + func FlushCache() + func Interfaces() (map[string]*Interface, error) + func IsLocalIp(ip netip.Addr) (bool, error) + type Interface struct + Addrs []netip.Prefix + HardwareAddr net.HardwareAddr + Index int + Name string + func ResolveInterface(name string) (*Interface, error) + func (iface *Interface) PickIPv4Addr(destination netip.Addr) (netip.Prefix, error) + func (iface *Interface) PickIPv6Addr(destination netip.Addr) (netip.Prefix, error)