Add simple variables viewer, that doesnt cut of line

This commit is contained in:
2026-03-29 18:46:31 +02:00
parent bb829286d1
commit 060ab01648
5 changed files with 59 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ func flattenDict(m map[string]interface{}, indent int) []string {
prefix := strings.Repeat(" ", indent)
for k, v := range m {
switch val := v.(type) {
case map[string]interface{}:
case map[string]any:
lines = append(lines, fmt.Sprintf("%s%s:", prefix, k))
lines = append(lines, flattenDict(val, indent+1)...)
default: