(parent map[string]interface{}, key string)
| 1449 | } |
| 1450 | |
| 1451 | func childMap(parent map[string]interface{}, key string) map[string]interface{} { |
| 1452 | if parent == nil { |
| 1453 | return map[string]interface{}{} |
| 1454 | } |
| 1455 | if value, ok := parent[key].(map[string]interface{}); ok { |
| 1456 | return value |
| 1457 | } |
| 1458 | return map[string]interface{}{} |
| 1459 | } |
| 1460 | |
| 1461 | func extractStringValue(value interface{}) string { |
| 1462 | text, _ := value.(string) |
no outgoing calls
no test coverage detected