MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / childMap

Function childMap

agent/app/service/agents_channels.go:1451–1459  ·  view source on GitHub ↗
(parent map[string]interface{}, key string)

Source from the content-addressed store, hash-verified

1449}
1450
1451func 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
1461func extractStringValue(value interface{}) string {
1462 text, _ := value.(string)

Callers 12

extractFeishuConfigFunction · 0.85
extractTelegramConfigFunction · 0.85
extractDiscordConfigFunction · 0.85
extractQQBotConfigFunction · 0.85
extractDingTalkConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected