Is it guaranteed that GOMAXPROCS is set to 1 when the environment variable of the same name is not set?
This code shows the value:
package main import (
As Go 1.5 Release Notes says
By default, Go programs run with GOMAXPROCS set to the number of cores available; in prior releases it defaulted to 1.
So starting from Go 1.5, the default value should be the number of cores.