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

Function extractBoolValue

agent/app/service/agents_channels.go:1481–1487  ·  view source on GitHub ↗
(value interface{}, defaultValue bool)

Source from the content-addressed store, hash-verified

1479}
1480
1481func extractBoolValue(value interface{}, defaultValue bool) bool {
1482 result, ok := value.(bool)
1483 if !ok {
1484 return defaultValue
1485 }
1486 return result
1487}
1488
1489func sortedChildKeys(values map[string]interface{}) []string {
1490 keys := make([]string, 0, len(values))

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