Documentation ¶
Overview ¶
Package util provides utility functions for the cmd packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoDefaultIP = errors.New("no suitable IP address")
NoDefaultIP means no suitable non-loopback address can be found.
Functions ¶
func DefaultLocalIP4 ¶
DefaultLocalIP4 returns an IPv4 address that this host can be reached on. Will return NoDefaultIP if no suitable address can be found.
Types ¶
Click to show internal directories.
Click to hide internal directories.