kv

package
v0.16.9-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: 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.

Jump to

Keyboard shortcuts

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