keyvalues

package
Version: v0.0.0-...-6928544 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2016 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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.

Types

type DuplicateError

type DuplicateError string

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

func (DuplicateError) Error

func (e DuplicateError) Error() string

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