system

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGoMaxProcsFailure = errors.New("failed to set GOMAXPROCS")
)

Functions

func AdjustGoMaxProcs

func AdjustGoMaxProcs(procs int) error

AdjustGoMaxProcs sets the runtime GOMAXPROCS val Since Go 1.5, Go will use the total number of logical processors that the system has available. Caveats to this are if someone has set the GOMAXPROCS env var set or wish to limit usage of the number of logical processors between a range from 1 to NumCPUs

func CreateDir

func CreateDir(dir string) error

CreateDir creates a directory based on the supplied parameter

func StringDataCompare

func StringDataCompare(haystack []string, needle string) bool

StringDataCompare data checks the substring array with an input and returns a bool

func WaitForInterrupt

func WaitForInterrupt() os.Signal

WaitForInterrupt waits until an os.Signal is received and returns the result

Types

This section is empty.

Directories

Path Synopsis
zip

Jump to

Keyboard shortcuts

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