package
1.1.2
Repository: https://github.com/lab5e/gotoolbox.git
Documentation: pkg.go.dev

# Functions

FindLoopbackIPv4Interface finds the IPv4 loopback interface.
FindPublicIPv4 returns the public IPv4 address of the computer.
FreeTCPPort returns a free TCP port by using net.ListenTCP on port :0.
FreeUDPPort returns a free UDP port by using net.ListenUDP on port :0.
IsLoopbackAddress returns true if the listen address (host:port) points at a loopback address.
PortOfHostPort returns the port number for the host:port string.
RandomLocalEndpoint returns a random endpoint on the loppback interface.
RandomPublicEndpoint returns a random public endpoint on the host.
ServiceHostPort returns the listener address as a host:port string.