Registry / utility / illumos-go-kstat

illumos-go-kstat

JSON →
library0.0.0-20210513183136-173c9b0a9973gogounverified

Package kstat provides a Go interface to the Solaris/OmniOS kstat system for user-level access to kernel statistics.

go get github.com/illumos/go-kstat
INSTALL
IMPORT
SIG · ILLUMOS-GO-KSTAT
I
illumos-go-kstat
utilitygov0.0.0-20210513183136-173c9b0a9973
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kstat
github.com/illumos/go-kstat

Opens a kstat token and prints it.

package main import ( "fmt" "github.com/illumos/go-kstat" ) func main() { token, err := kstat.Open() if err != nil { panic(err) } defer token.Close() fmt.Println(token) }
Debug
Known issues
gotchaThis package is not goroutine-safe; concurrent access may cause data races.
fix
Use external synchronization (e.g., mutex) when accessing from multiple goroutines.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20210513183136-173c9b0a9973latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
OpenAI (training)
2
Resources
illumos-go-kstat — go get illumos-go-kstat · libregistry