Skip to content

1eedaegon/go-dynamic-port-allocator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-dynamic-port-allocator

Go CI CodeQL

A Go library for allocate ports, dynamically.

Example

import (
	...
	port "github.com/1eedaegon/go-dynamic-port-allocator"
	...
)

ports := port.Get(3)
// ports is something like []int{10000, 10001, 10002}

Or

import (
	...
	port "github.com/1eedaegon/go-dynamic-port-allocator"
	...
)

ports := port.GetS(3)
// ports is something like []string{"10000", "10001", "10002"}

License

MIT

About

A Go library for allocate ports, dynamically

Resources

License

Stars

Watchers

Forks

Packages

No packages published