Documentation ¶
Overview ¶
Package netutil contains network-related utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullyQualifiedHostname ¶
FullyQualifiedHostname returns the FQDN of the machine.
func FullyQualifiedHostnameOrPanic ¶
func FullyQualifiedHostnameOrPanic() string
FullyQualifiedHostnameOrPanic is the same as FullyQualifiedHostname but panics in case of an error.
func JoinHostPort ¶
JoinHostPort is an extension to net.JoinHostPort that also formats the integer port.
func ResolveIPv4Addr ¶
ResolveIPv4Addr resolves the address:port part into an IP address:port pair
func SortRfc2782 ¶
SortRfc2782 reorders SRV records as specified in RFC 2782.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.