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: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址