Help us shape the future of Go! Take the 2026 Go Developer Survey

testlistener

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t *testing.T) (net.Listener, string, int)

New creates a TCP listener on a random port and returns the listener, the address and the port of this listener. It also registers a cleanup function to close the listener when the test ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL