Documentation
¶
Index ¶
Constants ¶
View Source
const LocalhostWithRandomPort = "127.0.0.1:0"
LocalhostWithRandomPort contains localhost address with local port. See https://godoc.org/net#Listen for details.
Variables ¶
This section is empty.
Functions ¶
func Listener ¶
func Listener(address string) (*net.TCPListener, error)
Listener returns a configured *net.TCPListener that listens on specified address.
func LocalListenerWithRandomPort ¶
func LocalListenerWithRandomPort() (*net.TCPListener, error)
LocalListenerWithRandomPort returns a configured *net.TCPListener that listens on localhost with random port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.