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 main

import (
“github.com/pgollang/go-portfind…


This content originally appeared on DEV Community and was authored by Prasanna Kumar

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 main

import (
    "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
     })
}

Repo: https://github.com/pgollangi/go-portfinder


This content originally appeared on DEV Community and was authored by Prasanna Kumar


Print Share Comment Cite Upload Translate Updates
APA

Prasanna Kumar | Sciencx (2021-04-14T13:15:53+00:00) go-portfinder: Go implementation of npm portfinder. Retrieved from https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/

MLA
" » go-portfinder: Go implementation of npm portfinder." Prasanna Kumar | Sciencx - Wednesday April 14, 2021, https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/
HARVARD
Prasanna Kumar | Sciencx Wednesday April 14, 2021 » go-portfinder: Go implementation of npm portfinder., viewed ,<https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/>
VANCOUVER
Prasanna Kumar | Sciencx - » go-portfinder: Go implementation of npm portfinder. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/
CHICAGO
" » go-portfinder: Go implementation of npm portfinder." Prasanna Kumar | Sciencx - Accessed . https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/
IEEE
" » go-portfinder: Go implementation of npm portfinder." Prasanna Kumar | Sciencx [Online]. Available: https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/. [Accessed: ]
rf:citation
» go-portfinder: Go implementation of npm portfinder | Prasanna Kumar | Sciencx | https://www.scien.cx/2021/04/14/go-portfinder-go-implementation-of-npm-portfinder/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.