json parsing of int64 in go; null values
Just use a *int64
. A pointer can either be nil or it can point to an int64 with an associated value and they work fine with Go's JSON package.
Just use a *int64
. A pointer can either be nil or it can point to an int64 with an associated value and they work fine with Go's JSON package.