Hi Folks,
In unmarshaling json, I like to retain the unknown fields as
json.RawMessage and just decode the known fields. Is it possible through
json tag?
type Decode struct {
Etag string `json:"etag"`
ContentLength int `json:"contentLength"`
UnknownFields *json.RawMessage
}
-Karthik
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.