What is correct way to declare UnmarshalJSON for custom type?

后端 未结 0 1212
臣服心动
臣服心动 2020-12-13 20:01

I create my own type as enum value in other languages (like java). I implement for deserialising UnmarshalJSON method for this type and see that marshal can\'t transform int

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