This commit is contained in:
potassium 2025-05-08 21:58:17 +03:00
parent 3eec3ce0fb
commit c0f6b4fcbb

View File

@ -34,7 +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().String())
println(v.Elem().Kind().String())
if v.Kind() == reflect.Map {
return e.encodeMap(v)
}