Registry / utility / tklauser-go-sysconf

tklauser-go-sysconf

JSON →
library0.4.0gogounverified

Package sysconf implements the sysconf(3) function and provides SC_* constants to query system configuration values.

go get github.com/tklauser/go-sysconf
INSTALL
IMPORT
SIG · TKLAUSER-GO-SYSCON
T
tklauser-go-sysconf
utilitygov0.4.0
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.

sysconf
github.com/tklauser/go-sysconf

Queries the system's clock tick rate using sysconf.

package main import ( "fmt" "github.com/tklauser/go-sysconf" ) func main() { val, err := sysconf.Sysconf(sysconf.SC_CLK_TCK) if err != nil { fmt.Println("Error:", err) return } fmt.Printf("CLK_TCK: %d\n", val) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
tklauser-go-sysconf — go get tklauser-go-sysconf · libregistry