Documentation ¶
Overview ¶
Package netutil implements network-related utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultHost ¶
GetDefaultHost obtains the first IP address of machine from the routing table and returns the IP address as string. An IPv4 address is preferred to an IPv6 address for backward compatibility.
func GetDefaultInterfaces ¶
GetDefaultInterfaces gets names of interfaces and returns a map[interface]families.
func IsNetworkTimeoutError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.