I assume that you’re concerned with the unused struct fields when marshaling the response JSON object. Have you included the “omitempty” field tag in your struct definition? json package - encoding/json - Go Packages
Thanks for the responses. I wasn’t aware of the omitempty tag. That’s interesting.
I was hoping for an extension or website that could clean these up based on the fact that the fields are not called in any of the functions. I suppose it would make for a fun project to build one…