ports

package
v0.0.0-...-c369810 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 2 Imported by: 0

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

func FindAvailable() (p Port, mErr error)

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

Jump to

Keyboard shortcuts

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