utils

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Util vars

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 GetTLSDir

func GetTLSDir(dir string) string

GetTLSDir returns the default TLS dir

Types

This section is empty.

Jump to

Keyboard shortcuts

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