14 lines
169 B
Go
14 lines
169 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
)
|
|
|
|
func getGOMAXPROCS() int {
|
|
return runtime.GOMAXPROCS(0)
|
|
}
|
|
|
|
func main() {
|
|
fmt.Printf("GOMAXPROCS: %d\n", getGOMAXPROCS())
|
|
}
|