Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/youyo/emptyport


https://github.com/youyo/emptyport

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# emptyport

[![wercker status](https://app.wercker.com/status/36d0825cc499a52cf476c8379342c8ea/s/master "wercker status")](https://app.wercker.com/project/byKey/36d0825cc499a52cf476c8379342c8ea)

This Library find the tcp port that is not used.

## Installation

```
$ go get gopkg.in/youyo/emptyport.v1
```

## Usage

Just call `emptyport.Get()`.

```
import (
"gopkg.in/youyo/emptyport.v1"
"fmt"
)

p, _ := emptyport.Get()
fmt.Println(p)
```

## License

MIT License.