(m map[string]any, keys ...string)
| 379 | } |
| 380 | |
| 381 | func 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 | } |