Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PickUnusedPort

func PickUnusedPort() (port int, err error)

PickUnusedPort returns a port number that is not currently bound. There is an inherent race condition between this function being called and any other process on the same computer, so the caller should bind to the port as soon as possible.

Types

This section is empty.

Source Files