aboutsummaryrefslogtreecommitdiff
path: root/src/path
diff options
context:
space:
mode:
authorQuentin Smith <quentin@golang.org>2016-05-26 17:53:21 -0400
committerQuentin Smith <quentin@golang.org>2016-05-26 22:40:14 +0000
commitb1894bb5cc781f1c59af727cea07ba4e84181830 (patch)
tree913fd84cfa8490a38158ece95eaa052449a6394a /src/path
parent02bf6b5ef93cdb981949e8164e4364a9d8424dc9 (diff)
downloadgo-b1894bb5cc781f1c59af727cea07ba4e84181830.tar.xz
encoding/json: improve Decode example
Decoding a JSON message does not touch unspecified or null fields; always use a new underlying struct to prevent old field values from sticking around. Fixes: #14640 Change-Id: Ica78c208ce104e2cdee1d4e92bf58596ea5587c8 Reviewed-on: https://go-review.googlesource.com/23483 Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/path')
0 files changed, 0 insertions, 0 deletions