gxlin

joined 2 years ago
[โ€“] gxlin@mas.to 1 points 5 months ago* (last edited 5 months ago) (1 children)

@lena (I just realized you had use UnmarshalJSON(). Please ignore my previous posts ๐Ÿ™ˆ )

> I'd rather not make a duplicate of the struct with that field removed, as it causes quite a bit of code duplication, and it's pretty chaotic.

Such duplication is good to involve from my perspective. It is okay, and maybe common, for data to have different presentation between codebase and exposed APIs.