问题 I am struggling with deserializing a integer into a string struct field. The struct field is a string and is expected to be assignable from users of my library. That's why I want it to be a string, since for the purpose of writing it to the database I actually don't care about the value inside. The users can supply text, but some just assign integers. Consider this struct: type Test struct { Foo string } Sometimes I end up with a JSON value that is valid but won't deserialize into the struct