env

package
v0.0.0-...-af27f20 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: MIT Imports: 3 Imported by: 3

Documentation

Overview

Package env implements a Environment Variables using []string.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvVar

type EnvVar []string

Env represents environment variables

func (EnvVar) Get

func (e EnvVar) Get(key string) string

Get retrieves the environment variable key

func (*EnvVar) Set

func (e *EnvVar) Set(key, value string)

Set sets the environment key to value.

func (*EnvVar) SetStr

func (e *EnvVar) SetStr(keyVal string)

SetStr sets environment variable from key=val string format.

func (EnvVar) String

func (e EnvVar) String() string

String returns key=val format of the environment variables. Each on a line.

Jump to

Keyboard shortcuts

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