utils: github.com/juju/utils/keyvalues Index | Files

package keyvalues

import "github.com/juju/utils/keyvalues"

The keyvalues package implements a set of functions for parsing key=value data, usually passed in as command-line parameters to juju subcommands, e.g. juju-set mongodb logging=true

Index

Package Files

keyvalues.go

func Parse Uses

func Parse(src []string, allowEmptyValues bool) (map[string]string, error)

Parse parses the supplied string slice into a map mapping keys to values. Duplicate keys cause an error to be returned.

type DuplicateError Uses

type DuplicateError string

DuplicateError signals that a duplicate key was encountered while parsing the input into a map.

func (DuplicateError) Error Uses

func (e DuplicateError) Error() string

Package keyvalues imports 2 packages (graph) and is imported by 178 packages. Updated 2017-03-24. Refresh now. Tools for package owners.