envkit

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(r io.Reader) map[string]string

Read to get environment map

func ReadFile

func ReadFile(source string) (map[string]string, error)

ReadFile read file to get environment map

func Save

func Save(m map[string]string, w io.Writer) error

Save envmap to writer

func SaveFile

func SaveFile(m map[string]string, target string) error

SaveFile save envmap to file

func Setenv

func Setenv(m map[string]string) error

Setenv set environment variable based on map

func SortedKeys added in v0.11.3

func SortedKeys(m map[string]string) []string

SortedKeys of EnvMap

func Unsetenv

func Unsetenv(m map[string]string) error

Unsetenv unset environment variable

Types

This section is empty.

Jump to

Keyboard shortcuts

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