test
This commit is contained in:
parent
3eec3ce0fb
commit
c0f6b4fcbb
2
write.go
2
write.go
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user