(keyValueArr whisk.KeyValueArr, key string, childKey string)
| 585 | } |
| 586 | |
| 587 | func getChildValueStrings(keyValueArr whisk.KeyValueArr, key string, childKey string) []string { |
| 588 | var keys []interface{} |
| 589 | var res []string |
| 590 | |
| 591 | keys = getChildValues(keyValueArr, key, childKey) |
| 592 | |
| 593 | for i := 0; i < len(keys); i++ { |
| 594 | castedValue, canCast := keys[i].(string) |
| 595 | if canCast { |
| 596 | res = append(res, castedValue) |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | sort.Strings(res) |
| 601 | whisk.Debug(whisk.DbgInfo, "Got values '%s' from '%v' for key '%s' and child key '%s'\n", res, keyValueArr, key, |
| 602 | childKey) |
| 603 | |
| 604 | return res |
| 605 | } |
| 606 | |
| 607 | func getValueFromJSONResponse(field string, response map[string]interface{}) interface{} { |
| 608 | var res interface{} |
no test coverage detected