Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPortAvailable ¶
CheckPortAvailable returns true if the given TCP port is free on localhost.
func GetFreePort ¶
GetFreePort asks the OS for an available TCP port by binding to port 0.
func ResolvePort ¶
ResolvePort checks if the desired port is available. If not, it finds a free port and returns it along with a boolean indicating whether a shift occurred. The warning message is returned for the caller to display.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.