golang - json.Marshal un-promoted field gets left out

前端 未结 0 488
执念已碎
执念已碎 2020-11-29 09:42

I\'m not sure if this is a bug or a feature, but json.Marshal leaves out fields not promoted because the upper-level already has the field.

Eg.

type Me         


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