summaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
Commit message (Collapse)AuthorAgeFilesLines
* encoding/json: add UnmarshalTypeError.OffsetAlex Plugaru2015-01-291-19/+20
| | | | | | | | | Fixes #9693 Change-Id: Ibf07199729bfc883b2a7e051cafd98185f912acd Reviewed-on: https://go-review.googlesource.com/3283 Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
* encoding/json: address go vet reportsEmil Hessman2014-12-281-1/+1
| | | | | | | | | | | | | | | | | | The error message for decoding a unquoted value into a struct field with the ,string option specified has two arguments when one is needed. Make the error message take one argument and add a test in order to cover the case when a unquoted value is specified. Also add error value as the missing argument for Fatalf call in test. Fixes the following go vet reports: decode.go:602: wrong number of args for format in Errorf call: 1 needed but 2 args decode_test.go:1088: missing argument for Fatalf("%v"): format reads arg 1, have only 0 args Change-Id: Id036e10c54c4a7c1ee9952f6910858ecc2b84134 Reviewed-on: https://go-review.googlesource.com/2109 Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
* encoding/json: fix handling of null with ,string fieldsRuss Cox2014-10-071-4/+36
| | | | | | | | | Fixes #8587. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews, iant, r https://golang.org/cl/152270044
* encoding/json: don't panic on incorrect map argumentRobert Griesemer2014-10-011-2/+4
| | | | | | | | | Fixes #8305. LGTM=rsc R=rsc CC=golang-codereviews https://golang.org/cl/145680044
* build: move package sources from src/pkg to srcRuss Cox2014-09-081-0/+1050
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.