system

package module
v0.0.0-...-133d8c3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 6 Imported by: 2

README

go-system-toolkit

Helpers for interacting with OS components like, FS, Env variables, etc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentUser = user.Current
View Source
var DefaultFileSystem = afero.NewOsFs()
View Source
var Stdout io.Writer = os.Stdout

Functions

func Env

func Env() map[string]string

Env returns the current environment variables as a usable map

func GetenvOrDefault

func GetenvOrDefault(key, defaultValue string) string

func Reset

func Reset()

Reset restores the system environment as it was when the package was imported

Types

This section is empty.

Jump to

Keyboard shortcuts

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