Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Overview ¶ Package route provides routing information. Index ¶ Variables func Default(af int) (name string, index int, err error) Constants ¶ This section is empty. Variables ¶ View Source var ErrNotFound = errors.New("route: not found") ErrNotFound indicates that no valid default route was found by a query. Functions ¶ func Default ¶ func Default(af int) (name string, index int, err error) Default returns the interface and netstat device index of the network interface used for the first identified default route for the specified address family. Valid values for af are syscall.AF_INET and syscall.AF_INET6. Types ¶ This section is empty. Source Files ¶ View all Source files doc.go route_linux.go Click to show internal directories. Click to hide internal directories.