summaryrefslogtreecommitdiff
path: root/src/pkg/json/struct.go
AgeCommit message (Collapse)AuthorFilesLines
2010-04-21json: Marshal, Unmarshal using new scannerRuss Cox1-481/+0
R=r CC=golang-dev http://codereview.appspot.com/953041
2010-04-11json: update documentation to match current coding styleChristopher Wedgwood1-6/+6
R=rsc CC=golang-dev http://codereview.appspot.com/888045 Committer: Russ Cox <rsc@golang.org>
2010-04-01json: use panic/recover to handle errors in MarshalAndrew Gerrand1-36/+21
R=r, gri CC=golang-dev http://codereview.appspot.com/872041
2010-03-17json: add MarshalIndent (accepts user-specified indent string)Andrew Gerrand1-51/+92
Fixes issue 661 R=r, rsc, skorobo CC=golang-dev http://codereview.appspot.com/576042
2010-02-22json: fix quoted strings in MarshalSergei Skorobogatov1-29/+62
R=rsc CC=golang-dev http://codereview.appspot.com/217047 Committer: Russ Cox <rsc@golang.org>
2010-01-06Propagate error to the caller in json.Marshal. Fixes issue 445.Ivan Krasin1-4/+7
R=rsc, imkrasin CC=golang-dev http://codereview.appspot.com/179125 Committer: Russ Cox <rsc@golang.org>
2010-01-05Check for errors when writing fields of a struct.Rob Pike1-1/+5
R=rsc CC=golang-dev, jack.palevich http://codereview.appspot.com/183109
2009-12-151) Change default gofmt default settings forRobert Griesemer1-57/+57
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-12-09json package: Fixed handling of nil valuesRoss Light1-1/+11
Fixes issue 400. R=golang-dev, rsc http://codereview.appspot.com/167058 Committer: Russ Cox <rsc@golang.org>
2009-11-24A quick fix to ensure that json.Marshal returns errors correctly, as well as ↵Michael Hoisie1-2/+2
some error-related tests R=rsc http://codereview.appspot.com/157151 Committer: Russ Cox <rsc@golang.org>
2009-11-19Add json.Marshal to json packageMichael Hoisie1-0/+97
R=rsc CC=golang-dev http://codereview.appspot.com/157068 Committer: Russ Cox <rsc@golang.org>
2009-11-13json: minor comment fix.Adam Langley1-1/+1
I screwed up and didn't write one of the code review changes to disk before submitting. TBR=rsc R=rsc http://codereview.appspot.com/154122
2009-11-13json: allow one to unmarshal a top-level JSON array.Adam Langley1-2/+18
Fixies issue 114. R=rsc CC=golang-dev http://codereview.appspot.com/154121
2009-11-13json: fix addressing of slice indexes that are multiples of 8.Adam Langley1-1/+1
Fixes issue 147. R=rsc CC=golang-dev http://codereview.appspot.com/152123
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-1/+1
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-43/+43
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-2/+1
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt-ify io, json, runtime, encodingRobert Griesemer1-4/+5
R=rsc http://go/go-review/1017056
2009-11-01allow unpacking of json map into Go map,Russ Cox1-18/+52
now that reflection supports it. R=r http://go/go-review/1015008
2009-10-06apply gofmt to go, gob, hash, http, image, io, json, logRuss Cox1-23/+22
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
2009-10-05update json commentsRuss Cox1-12/+14
R=r DELTA=16 (4 added, 2 deleted, 10 changed) OCL=35320 CL=35331
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox1-3/+1
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-09-09update type switch to match spec.Russ Cox1-6/+2
R=ken OCL=34471 CL=34471
2009-09-01make ToUpper, ToLower etc. handle unicode properly.Rob Pike1-1/+1
Change their names too. R=rsc DELTA=206 (123 added, 2 deleted, 81 changed) OCL=34170 CL=34194
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-1/+0
to whole-package compilation. R=r OCL=33070 CL=33101
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer1-1/+1
- FieldByIndex - changed StructField.Index type from int -> []int - adjustments to reflect clients R=rsc,r DELTA=336 (263 added, 47 deleted, 26 changed) OCL=32731 CL=32802
2009-07-16use FieldByName where possible.Rob Pike1-4/+2
R=rsc DELTA=20 (0 added, 12 deleted, 8 changed) OCL=31758 CL=31758
2009-07-07json: use new reflect interface (CL 31107)Russ Cox1-82/+91
R=r DELTA=192 (52 added, 43 deleted, 97 changed) OCL=31116 CL=31286
2009-06-22changes required if we disallow the implicit *Russ Cox1-35/+23
in cap, len, [], and range on maps, strings, and slices. R=r DELTA=57 (2 added, 12 deleted, 43 changed) OCL=30549 CL=30590
2009-06-09mv src/lib to src/pkgRob Pike1-0/+269
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102