When Golang unmarshals JSON into interface{}, it becomes not needed type, but map

前端 未结 0 941
轮回少年
轮回少年 2020-12-02 07:21

When you i use json.Unmarshal to conctere type i get my values filled as expected. But if i pass interface{} instead of struct (for more flexibility), i get map

相关标签:
回答
  • 消灭零回复
提交回复
热议问题