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

network

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package network implements the network test utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenFreePort added in v0.5.0

func OpenFreePort(t *testing.T) int

OpenFreePort opens a free port on the local machine. It should be used only in tests, where an http server needs a port, but unlike grP

func OpenListener added in v1.0.0

func OpenListener(t *testing.T) net.Listener

Types

This section is empty.

Jump to

Keyboard shortcuts

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