automaxprocs.go 178 B

12345678
  1. package sysx
  2. import "go.uber.org/automaxprocs/maxprocs"
  3. // Automatically set GOMAXPROCS to match Linux container CPU quota.
  4. func init() {
  5. maxprocs.Set(maxprocs.Logger(nil))
  6. }