Registry / utility / automaxprocs

automaxprocs

JSON →
library1.6.0gogounverified

Package automaxprocs automatically sets GOMAXPROCS to match the Linux container CPU quota, if any.

go get go.uber.org/automaxprocs
INSTALL
IMPORT
SIG · AUTOMAXPROCS
A
automaxprocs
utilitygov1.6.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.

automaxprocs
go.uber.org/automaxprocs

Import automaxprocs to automatically set GOMAXPROCS in containerized environments.

package main import ( _ "go.uber.org/automaxprocs" ) func main() { // GOMAXPROCS is automatically set based on container CPU quota }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
2
Amazon
1
Resources
automaxprocs — go get automaxprocs · libregistry