Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostFromAddr ¶
HostFromAddr returns the host of "host:port", or the address itself when it has no port.
func SplitOptionalPort ¶ added in v0.3.0
SplitOptionalPort splits "host:port" like net.SplitHostPort, and also accepts an address without a port, for which it returns the address itself as host and hasPort false. A bare bracketed IPv6 literal keeps its brackets. Any other malformed address returns net.SplitHostPort's error.
Types ¶
Click to show internal directories.
Click to hide internal directories.