Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freeport is a simple Go package for finding free TCP ports

This is a more up-to-date hard fork of https://github.com/phayes/freeport

It has phayes#8 merged, the CLI removed (Go package only), and other minor improvements.

PRs welcome and appreciated.

Usage

package main

import "github.com/slimsag/freeport"

func main() {
	port, err := freeport.GetFreePort()
	if err != nil {
		log.Fatal(err)
	}
	// port should be ready to listen on
}

About

Get a free and open tcp port that is ready to use

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages