process

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentProcessDirectory added in v1.3.3

func CurrentProcessDirectory() string

CurrentProcessDirectory returns the absolute directory of the current process

func CurrentProcessPath

func CurrentProcessPath() string

CurrentProcessPath returns the absolute path of the current running process or empty string

func CurrentProcessPathE added in v1.4.4

func CurrentProcessPathE() (string, error)

CurrentProcessPathE returns the absolute path of the current running process or error

func GetEnv

func GetEnv(key, fallback string) string

GetRawEnv lookup a raw environment variable or return fallback value

func SetEnvPath

func SetEnvPath(element string, before bool) error

SetEnvPath appends (if before is true) or prepends element to PATH for the current process

Types

This section is empty.

Jump to

Keyboard shortcuts

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