An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 14, 2021 01:15 pm GMT
Original Link: https://dev.to/pgollangi/go-portfinder-go-implementation-of-npm-portfinder-52jm
go-portfinder: Go implementation of npm portfinder
Go implementation of npm portfinder. A simple tool to find an open port on the current machine.
Installation
$ go get github.com/pgollang/go-portfinder
Usage
package mainimport ( "github.com/pgollang/go-portfinder")func main(){ // scans and returns first open port on all network interfaces of current machine. openPort, err := portfinder.GetPort(&PortFinderOptions { StartPort: 9090, StopPort: 9099 })}
Original Link: https://dev.to/pgollangi/go-portfinder-go-implementation-of-npm-portfinder-52jm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To