Documentation ¶ Index ¶ func SetCPU(cpu string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetCPU ¶ func SetCPU(cpu string) error SetCPU parses string cpu and sets GOMAXPROCS according to its value. It accepts either a number (e.g. 3) or a percent (e.g. 50%). If the percent resolves to less than a single GOMAXPROCS, it rounds it up to GOMAXPROCS=1. Types ¶ This section is empty. Source Files ¶ View all Source files cpu.go Click to show internal directories. Click to hide internal directories.