Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Port ¶
type Port = int
Port is a port.
func FindAvailable ¶
FindAvailable returns an available port by asking the kernel for an unused port. https://unix.stackexchange.com/a/180500/179300
Copied and slightly modified from https://github.com/phayes/freeport Licensed under BSD-3. Copyright (c) 2014, Patrick Hayes
Click to show internal directories.
Click to hide internal directories.