Registry / utility / phayes-freeport

phayes-freeport

JSON →
library0.0.0-20220201140144-74d24b5ae9f5gogounverified

A utility to find a free TCP port on the local machine.

go get github.com/phayes/freeport
INSTALL
IMPORT
SIG · PHAYES-FREEPORT
P
phayes-freeport
utilitygov0.0.0-20220201140144-74d24b5ae9f5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

freeport
github.com/phayes/freeport

Gets a free TCP port.

package main import ( "fmt" "github.com/phayes/freeport" ) func main() { port, err := freeport.GetFreePort() if err != nil { panic(err) } fmt.Println(port) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220201140144-74d24b5ae9f5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
50
Bingbot
3
Resources
phayes-freeport — go get phayes-freeport · libregistry