Using reflect package to assign value to struct(passed to function as interface) element

前端 未结 0 802
清酒与你
清酒与你 2021-02-05 20:45

I\'m passing a struct to a function as interface{} I want to iterate over all the struct fields and get the field name (this part is working) then based on the name

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