environ

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const DROOT_ENV_FILE_PATH = "/.drootenv"

DROOT_ENV_FILE_PATH is the file path of list of environment variables for `droot run`.

Variables

This section is empty.

Functions

func GetEnvironFromEnvFile

func GetEnvironFromEnvFile(filename string) ([]string, error)

GetEnvironFromEnvFile gets string slice of environment variables from the `filename`.

func MergeEnviron

func MergeEnviron(dst []string, src []string) ([]string, error)

MergeEnviron merges the two of string slice including environment variables. `dst` and `src` must be KEY=VALUE format. If the items of `dst` and `src` has the same KEY, those of `src` overrides those of `dst`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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