Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAddressPort ¶ added in v1.16.100
FormatAddressPort Helper for net.JoinHostPort that takes int for port
func GetPrivateIPv4 ¶ added in v1.0.0
GetPrivateIPv4 returns the list of private network IPv4 addresses on all active interfaces.
func GetPublicIPv6 ¶ added in v1.0.0
GetPublicIPv6 returns the list of all public IPv6 addresses on all active interfaces.
func IsAny ¶
func IsAny(ip interface{}) bool
IsAny checks if the given ip address is an IPv4 or IPv6 ANY address. ip can be either a *net.IP or a string. It panics on another type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.