kv

package
Version: v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	Key   string
	Value string
}

Pair represents a <key, value> pair.

func KeyValuesFromLine

func KeyValuesFromLine(line []byte, currentLine int) (Pair, error)

KeyValuesFromLine returns a kv with blank key if the line is empty or a comment. The value will be retrieved from the environment if necessary.

func KeyValuesFromLines

func KeyValuesFromLines(content []byte) ([]Pair, error)

KeyValuesFromLines parses given content in to a list of key-value pairs.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL