runtime

package
v0.0.0-...-20aadb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL