num

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPU

func CPU(s string) (int, error)

CPU parses the string s to see if it contains NumCPU()* (with the star), if so the number behind it (without a space) multiplied with runtime.CPU() and returns, otherwise a number if assumed and that is parsed. A negative number returns an error if seen after `numcpu()*`, but we allow -1 in the normal expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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