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

Function printField

commands/util.go:1023–1032  ·  view source on GitHub ↗
(value interface{}, field string)

Source from the content-addressed store, hash-verified

1021}
1022
1023func printField(value interface{}, field string) {
1024 var matchFunc = func(structField string) bool {
1025 return strings.ToLower(structField) == strings.ToLower(field)
1026 }
1027
1028 structValue := reflect.ValueOf(value)
1029 fieldValue := reflect.Indirect(structValue).FieldByNameFunc(matchFunc)
1030
1031 printJSON(fieldValue.Interface())
1032}
1033
1034func parseShared(shared string) (bool, bool, error) {
1035 var isShared, isSet bool

Callers 5

activation.goFile · 0.85
rule.goFile · 0.85
package.goFile · 0.85
trigger.goFile · 0.85
printActionGetWithFieldFunction · 0.85

Calls 1

printJSONFunction · 0.85

Tested by

no test coverage detected