Versions in this module Expand all Collapse all v0 v0.1.2 Dec 8, 2023 v0.1.1 Dec 4, 2023 Changes in this version type NetRoute + Kind NetRouteKind v0.1.0 Nov 26, 2023 Changes in this version + func FindDefaultGateways() ([]netip.Addr, error) + func FindDefaultIPs() ([]netip.Addr, error) + func FindDefaultInterfaces() ([]string, error) + func PickDefaultInterface() (string, error) + type ErrCantParse struct + func (*ErrCantParse) Error() string + type ErrInvalidRouteFileFormat struct + func (e *ErrInvalidRouteFileFormat) Error() string + type ErrNotImplemented struct + func (*ErrNotImplemented) Error() string + type NetRoute struct + Destination string + Flags string + Gateway string + Netif string + func (n NetRoute) HasFlags(flags ...string) bool + type NetRouteKind uint8 + const NetRouteKindV4 + const NetRouteKindV6 + type NetRouteList []NetRoute + func (n NetRouteList) FindDefaults(kind NetRouteKind) []NetRoute