MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / getKeyValueFormattedJSON

Function getKeyValueFormattedJSON

commands/util.go:125–139  ·  view source on GitHub ↗
(data map[string]interface{})

Source from the content-addressed store, hash-verified

123}
124
125func getKeyValueFormattedJSON(data map[string]interface{}) whisk.KeyValueArr {
126 var keyValueArr whisk.KeyValueArr
127
128 for key, value := range data {
129 keyValue := whisk.KeyValue{
130 Key: key,
131 Value: value,
132 }
133 keyValueArr = append(keyValueArr, keyValue)
134 }
135
136 whisk.Debug(whisk.DbgInfo, "Created key/value format '%v' from '%v'\n", keyValueArr, data)
137
138 return keyValueArr
139}
140
141func getFormattedJSON(key string, value string) string {
142 var res string

Callers 1

getJSONFromStringsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected