Created
June 5, 2013 05:41
-
-
Save bradclawsie/5711832 to your computer and use it in GitHub Desktop.
this type can be serialized to json so that uninitialized optional fields are null
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Foo struct { | |
MandatoryString string | |
OptionalUInt64 NullableUInt64 | |
OptionalString NullableString | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment