Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLoopbackIP4 = "127.0.0.1" DefaultLoopbackIP6 = "::1" )
Variables ¶
This section is empty.
Functions ¶
func GetLoopbackIP ¶
GetLoopbackIP returns the ip address of local loopback interface.
func JoinIPStrings ¶
func MustGetLoopbackIP ¶
MustGetLoopbackIP is a wrapper for GetLoopbackIP. If any error occurs or loopback interface is not found, will fall back to 127.0.0.1 for ipv4 or ::1 for ipv6.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.