usys

package
v0.0.0-...-76c535a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//	Look-up hash-table for the `OSName` function.
	OSNames = map[string]string{
		"windows":   "Windows",
		"darwin":    "Mac OS X",
		"linux":     "Linux",
		"freebsd":   "FreeBSD",
		"appengine": "Google App Engine",
	}
)

Functions

func MaxProcs

func MaxProcs()

Short-hand for: `runtime.GOMAXPROCS(2 * runtime.NumCPU())`.

func OSName

func OSName(goOS string) (name string)

Returns the human-readable operating system name represented by the specified `goOS` name, by looking up the corresponding entry in `OSNames`.

func UserDataDirPath

func UserDataDirPath(preferCacheOverConfig bool) string

func UserHomeDirPath

func UserHomeDirPath() string

Returns the path to the current user's home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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