This commit is contained in:
2025-05-08 21:41:05 +03:00
parent e6b195fbb1
commit f07b30bf52
2 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ func (e *Encoder) encodeStruct(val reflect.Value) error {
func (e *Encoder) encodeMap(val reflect.Value) error {
for _, k := range val.MapKeys() {
v := val.MapIndex(k)
println(v.Kind())
if v.Kind() == reflect.Map {
return e.encodeMap(v)
}