Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/d1nfinite/gons
simple and graceful golang netstat library
https://github.com/d1nfinite/gons
Last synced: about 1 month ago
JSON representation
simple and graceful golang netstat library
- Host: GitHub
- URL: https://github.com/d1nfinite/gons
- Owner: d1nfinite
- Created: 2022-12-11T12:24:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T03:45:28.000Z (about 1 year ago)
- Last Synced: 2024-06-20T17:33:25.806Z (5 months ago)
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gons
go netstat library## Install
```bash
go get github.com/d1nfinite/gons@latest
```## Usage
```go
sockets, err := Sockets()
if err != nil {
t.Fatal(err)
}for _, s := range sockets {
fmt.Printf("%+v\n", s)
}
```