parameters

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 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.

Jump to

Keyboard shortcuts

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