I am using the auto-generated google api client and ran in to a problem with unsuspending a user (via admin/directory/v1). The Suspended field on the User object has the json tab omitempty and setting Suspended to false causes it not to get sent to the server. In my local copy of the library I changed it to *bool which handles true/false/nil. Should this be the default for all booleans in the API? Throwing dereferences everywhere is ugly, but I don't know of a way to force json to send an empty field without taking omitempty away and if you take it away, sending PATCH requests will end up setting values you didn't want.
-Michael -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.