Go library clone of nstat
c := &nstat.Counters{DumpZeros: true}
for counter, value := range c.Get() {
fmt.Printf("%-32s %d\n", counter, value)
}
go get github.com/sparrc/nstat/...
# -a is always on:
nstat -z
Go library clone of nstat
c := &nstat.Counters{DumpZeros: true}
for counter, value := range c.Get() {
fmt.Printf("%-32s %d\n", counter, value)
}
go get github.com/sparrc/nstat/...
# -a is always on:
nstat -z