Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/youyo/emptyport
https://github.com/youyo/emptyport
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/youyo/emptyport
- Owner: youyo
- Created: 2016-02-07T15:35:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-29T03:45:37.000Z (about 7 years ago)
- Last Synced: 2024-10-29T01:14:11.711Z (17 days ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.