Is there a way to marshal different struct type to same json field when not empty?

后端 未结 0 436
别那么骄傲
别那么骄傲 2020-12-07 05:19

I have a struct for response defined in common package like this.

//response.go
type Response struct {
    Id               


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