Versions in this module Expand all Collapse all v0 v0.0.1 Mar 3, 2024 Changes in this version + func DefaultRouteInterface() (string, error) — darwin/amd64, linux/amd64, windows/amd64 + func GetInterfaceNames() (list []string) + type Interface struct + Addrs []netip.Prefix + HardwareAddr net.HardwareAddr + Index int + Name string + func GetInterfaceByIndex(index int) (*Interface, error) + func GetInterfaceByName(name string) (*Interface, error) + func (iface *Interface) PickIPv4Addr(dst netip.Addr) netip.Addr + func (iface *Interface) PickIPv6Addr(dst netip.Addr) netip.Addr