keyvalues

package
v0.0.0-...-9d78121 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: LGPL-3.0 Imports: 2 Imported by: 46

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

Jump to

Keyboard shortcuts

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