Documentation
¶
Overview ¶
Package netutil contains small network-address helpers shared by the listeners and the command line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Host ¶
Host returns the host portion of an address. Addresses without a port are returned unchanged.
func IsLoopback ¶
IsLoopback reports whether addr is a loopback host, including the special name "localhost". An empty host (for example ":143") is not loopback.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.