Closed bfontaine closed 6 years ago
Yes, one of the goals I have for v2 is to move to pointer fields for all attributes, in order that this makes sense.
We do this already for some boolean values - with the helper intercom.Bool(true)
. I'd like to know if there's a better alternative than pointer fields, but that seems to be the norm.
V2 is now available in the wild :) Reopen if you're still experiencing this issue :+1:
Think this should have been closed before, not sure if it was re-opened by accident. Will close for now but if there is any outstanding issue then please re-open
Hello,
If you take a
Company
for example, itsMonthlySpend
field is not serialized if it’s0
because of theomitempty
tag:This means saving
Company{ID: "abc", MonthlySpend: 0}
andCompany{ID: "abc"}
is the same. Shouldn’t you use an*int32
(int32
pointer) instead, and the same on all other reset-able fields?