1
0
mirror of https://github.com/golang/go synced 2024-11-19 18:54:41 -07:00
go/src/encoding
Håvard Haugen c60707b14d encoding/json: use reflect.SetBytes when decoding bytes
This allows slices of custom types with byte as underlying type to be
decoded, fixing a regression introduced in CL 9371.

Fixes #12921.

Change-Id: I62a715eaeaaa912b6bc599e94f9981a9ba5cb242
Reviewed-on: https://go-review.googlesource.com/16303
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-11-14 23:41:46 +00:00
..
ascii85
asn1 html/template, encoding/asn1: fix test errors 2015-11-10 00:30:41 +00:00
base32
base64 encoding/base64,xml: map/slice literals janitoring 2015-09-11 14:05:40 +00:00
binary encoding/binary: document that Read returns io.EOF iff zero bytes are read 2015-09-30 22:10:44 +00:00
csv encoding/csv: indicate package of EOF in docs 2015-10-14 00:46:21 +00:00
gob encoding/gob: fix typo in documentation 2015-10-06 15:13:43 +00:00
hex
json encoding/json: use reflect.SetBytes when decoding bytes 2015-11-14 23:41:46 +00:00
pem testing/quick: probabilistically generate nil pointers 2015-06-08 21:19:13 +00:00
xml encoding/xml: check for exported fields in embedded structs 2015-10-26 11:26:11 +00:00
encoding.go