https://github.com/bastjan/netstat
:telescope: Netstat helps you query open network connections in your go application.
https://github.com/bastjan/netstat
go golang netstat network procfs
Last synced: 4 months ago
JSON representation
:telescope: Netstat helps you query open network connections in your go application.
- Host: GitHub
- URL: https://github.com/bastjan/netstat
- Owner: bastjan
- License: mit
- Created: 2018-10-15T05:46:15.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T08:01:40.000Z (almost 6 years ago)
- Last Synced: 2025-06-03T13:18:19.715Z (7 months ago)
- Topics: go, golang, netstat, network, procfs
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 12
- Watchers: 0
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# netstat for go
[![GoDoc][doc-img]][doc] [![CI Status][ci-img]][ci] [![Coverage Status][cover-img]][cover] [![Go Report Card][report-img]][report]
Package netstat helps you query open network connections.
## Getting Started
```go
import "github.com/bastjan/netstat"
// Query open tcp sockets
netstat.TCP.Connections()
// Query open udp sockets for ipv6 connections
netstat.UDP6.Connections()
```
See [netstat_tulpen.go](examples/netstat_tulpen/netstat_tulpen.go) for a more throughout example.
## Development Status: Stable
This library is v1 and follows SemVer.
No breaking changes will be made to exported APIs before v2.0.0.
## Support for Mac OS and *BSD
There is currently no support planned for MacOS or *BSD without procfs support.
[doc]: https://godoc.org/github.com/bastjan/netstat
[doc-img]: https://godoc.org/github.com/bastjan/netstat?status.svg
[cover]: https://codecov.io/gh/bastjan/netstat
[cover-img]: https://codecov.io/gh/bastjan/netstat/branch/master/graph/badge.svg
[ci]: https://travis-ci.org/bastjan/netstat
[ci-img]: https://travis-ci.org/bastjan/netstat.svg?branch=master
[report]: https://goreportcard.com/report/github.com/bastjan/netstat
[report-img]: https://goreportcard.com/badge/github.com/bastjan/netstat