How to know if a struct's field is a pointer to struct or a struct or neither?

后端 未结 0 1325
我寻月下人不归
我寻月下人不归 2020-12-19 09:05

I\'m using this code to scan each field of a struct.

var myModel *types.Struct
myModel, ok = pkg.Types.Scope().Look         


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