Is there a simple way to find out the number of CPU's on a local machine using Go lang?
http://play.golang.org/p/cuaf2ZHLIx
package main import ( "fmt" "runtime" ) func main() { fmt.Println(runtime.NumCPU()) }
2.1m questions
2.1m answers
60 comments
57.0k users