portutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAvailable

func FindAvailable(addr string) (string, []string)

FindAvailable finds an available port starting from the given address. It returns the available address and a list of ports that were tried but in use. The addr parameter should be in the format ":port" (e.g., ":3000").

func FindAvailablePort

func FindAvailablePort(startPort int) (int, []int)

FindAvailablePort is a convenience function that takes an int port and returns the available port number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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