genv

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package genv provides operations for environment variables of system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() []string

All returns a copy of strings representing the environment, in the form "key=value".

func Get

func Get(key string, def ...string) string

Get returns the value of the environment variable named by the <key>. It returns given <def> if the variable does not exist in the environment.

func Remove

func Remove(key string) error

Remove deletes a single environment variable.

func Set

func Set(key, value string) error

Set sets the value of the environment variable named by the <key>. It returns an error, if any.

Types

This section is empty.

Jump to

Keyboard shortcuts

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