env

package
v0.0.0-...-a61cce2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV_WHITESPACE     = " \t"
	ENV_COMMENT_PREFIX = "#"
)

Variables

This section is empty.

Functions

func IsEmptyPair

func IsEmptyPair(pair Pair) bool

func IsEmptyPairs

func IsEmptyPairs(pairs Pairs) bool

func ParseKey

func ParseKey(key string) string

[]string{key, value}

func Pattern

func Pattern() *regexp.Regexp

Types

type Client

type Client struct {
}

type Pair

type Pair []string

func EmptyPair

func EmptyPair() Pair

func NewPair

func NewPair(key, value string) Pair

func ParseEnvLine

func ParseEnvLine(line string) (pair Pair, err error)

nil, nil means comment

type Pairs

type Pairs []Pair

func EmptyPairs

func EmptyPairs() Pairs

func ParseEnv

func ParseEnv(r io.Reader) (envs Pairs, err error)

Jump to

Keyboard shortcuts

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