GO - how to handle attributes that could be multiple types (parsing json to struct)?

前端 未结 0 1371
清酒与你
清酒与你 2020-12-03 03:32

I\'m parsing a json string where accord to RFC, aud attribute can be a string or a list of string.

I have created my struct as follows:

ty         


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