parameters

package
Version: v0.1.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseKeyMaps

func ParseKeyMaps(params []string) (map[string]string, error)

ParseKeyMaps converts a string array of key lookups into a map of the map name and key Example: [a[b] mysecret[foo.txt]] becomes map[a:b mysecret:foo.txt]

func ParseVariableAssignments

func ParseVariableAssignments(params []string) (map[string]interface{}, error)

ParseVariableAssignments converts a string array of variable assignments into a map of keys and values Example: [a=b c=abc1232=== d=banana d=pineapple] becomes map[a:b c:abc1232=== d:[banana pineapple]]

func ParseVariableJSON

func ParseVariableJSON(params string) (map[string]interface{}, error)

ParseVariableJSON converts a JSON object into a map of keys and values Example: `{ "location" : "east", "group" : "demo" }' becomes map[location:east group:demo]

Types

This section is empty.

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