MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / getBoolNested

Function getBoolNested

internal/tui/config_tab.go:381–394  ·  view source on GitHub ↗
(m map[string]any, keys ...string)

Source from the content-addressed store, hash-verified

379}
380
381func getBoolNested(m map[string]any, keys ...string) bool {
382 current := m
383 for i, key := range keys {
384 if i == len(keys)-1 {
385 return getBool(current, key)
386 }
387 if nested, ok := current[key].(map[string]any); ok {
388 current = nested
389 } else {
390 return false
391 }
392 }
393 return false
394}

Callers 1

parseConfigMethod · 0.85

Calls 1

getBoolFunction · 0.85

Tested by

no test coverage detected