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

Function getValueBool

commands/util.go:545–559  ·  view source on GitHub ↗
(keyValueArr whisk.KeyValueArr, key string)

Source from the content-addressed store, hash-verified

543}
544
545func getValueBool(keyValueArr whisk.KeyValueArr, key string) bool {
546 var value interface{}
547 var res bool
548
549 value = keyValueArr.GetValue(key)
550 castedValue, canCast := value.(bool)
551
552 if canCast {
553 res = castedValue
554 }
555
556 whisk.Debug(whisk.DbgInfo, "Got bool value '%v' for key '%s'\n", res, key)
557
558 return res
559}
560
561func getChildValues(keyValueArr whisk.KeyValueArr, key string, childKey string) []interface{} {
562 var value interface{}

Callers 1

getParamUnionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected