github.com/ttys3/engine@v17.12.1-ce-rc2+incompatible/pkg/sysinfo/numcpu.go (about) 1 // +build !linux,!windows 2 3 package sysinfo 4 5 import ( 6 "runtime" 7 ) 8 9 // NumCPU returns the number of CPUs 10 func NumCPU() int { 11 return runtime.NumCPU() 12 }