Skip to content

Instantly share code, notes, and snippets.

@bradclawsie
Created June 5, 2013 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradclawsie/5711832 to your computer and use it in GitHub Desktop.
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
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