summaryrefslogtreecommitdiff
path: root/src/pkg/gob
AgeCommit message (Collapse)AuthorFilesLines
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý15-7084/+0
2011-09-19Imported Upstream version 60.1upstream/60.1Ondřej Surý1-0/+3
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý15-0/+7081
2011-09-13Imported Upstream version 60Ondřej Surý15-6973/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý8-70/+54
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý5-6/+6
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý12-139/+265
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý10-302/+488
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý10-341/+1276
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý3-7/+126
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý10-454/+900
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý12-1193/+1954
2010-06-29gob: a couple of tiny simplifications using Kind()Rob Pike3-12/+26
R=rsc CC=golang-dev http://codereview.appspot.com/1695046
2010-06-28gob: add DecodeValue and EncodeValueRob Pike5-18/+30
R=rsc CC=golang-dev http://codereview.appspot.com/1698045
2010-06-28gob: allow transmission of things other than structs at the top level.Rob Pike6-113/+234
also fix a bug handling nil maps: before, would needlessly send empty map R=rsc CC=golang-dev http://codereview.appspot.com/1739043
2010-06-24gob: add support for complex numbersRob Pike4-69/+224
R=rsc CC=golang-dev http://codereview.appspot.com/1708048
2010-06-21reflect: add Type.Bits method, add tags to prohibit conversionsRuss Cox2-6/+14
gob: substitute slice for map R=r CC=golang-dev http://codereview.appspot.com/1699045
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox5-66/+52
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-05-31Fix typo in gob docs. They were introduced in revision 3199778bafNigel Tao1-5/+5
"change the encoding of uints...". R=r CC=golang-dev http://codereview.appspot.com/1436041
2010-05-07gob: bug fix: errors encoding the payload were notRob Pike1-2/+6
returned to caller. R=rsc CC=golang-dev http://codereview.appspot.com/1164041
2010-05-07gob: add an internal commentary example showing how theRob Pike2-176/+249
values are encoded for transmission. R=rsc CC=golang-dev http://codereview.appspot.com/1146041
2010-05-06gob: add test for indirect maps, slices, arrays.Rob Pike2-3/+67
fix a bug in the handling of indirect maps. R=rsc CC=golang-dev http://codereview.appspot.com/1132042
2010-05-05gob: add support for maps.Rob Pike6-43/+254
Because maps are mostly a hidden type, they must be implemented using reflection values and will not be as efficient as arrays and slices. R=rsc CC=golang-dev http://codereview.appspot.com/1127041
2010-03-30simplify various code using new map index ruleRuss Cox2-5/+4
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox1-3/+3
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike3-7/+7
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer3-36/+36
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25strings: delete Runes, BytesRuss Cox1-3/+3
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-01-13to improve the chances for compatibility, open a window of unused idsRob Pike1-0/+8
and specify a lowest id granted to users. R=rsc CC=golang-dev http://codereview.appspot.com/186081
2009-12-31trivial bug: []byte is special but [3]byte is not.Rob Pike2-5/+7
modify a test to verify the fix. R=rsc CC=golang-dev http://codereview.appspot.com/183090 Committer: Rob Pike <r@golang.org>
2009-12-30improve some type switches now that multiple types per case are supported.Rob Pike2-50/+6
R=rsc CC=golang-dev http://codereview.appspot.com/181089
2009-12-29add a debugging printer to the gob package.Rob Pike3-0/+246
used only for debugging, debug.go is not normally part of the package source. also add a dump program to call it. R=rsc CC=golang-dev http://codereview.appspot.com/183075
2009-12-29remove all references to gobType() from the decoder.Rob Pike1-14/+20
Fixes issue 470. R=rsc CC=golang-dev http://codereview.appspot.com/183074
2009-12-29fix dumb bug: must write out default values inside arrays and slicesRob Pike2-19/+45
Fixes issue 459. R=rsc, imkrasin, sonia CC=golang-dev http://codereview.appspot.com/181073
2009-12-151) Change default gofmt default settings forRobert Griesemer8-1106/+1106
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-13fix bug for large counts: used a one-byte buffer.Rob Pike1-3/+2
R=rsc CC=golang-dev http://codereview.appspot.com/174082
2009-12-07runtime: introduce unsafe.New and unsafe.NewArrayRuss Cox1-15/+11
to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
2009-12-03The String() method requires global state that makes it not work outside of ↵Rob Pike3-17/+17
this package, so make it a local method (_String()). R=rsc CC=golang-dev http://codereview.appspot.com/165049
2009-12-03error propagation in gob/encoder.Rob Pike1-11/+27
R=rsc CC=golang-dev http://codereview.appspot.com/165048
2009-12-02test that arrays work properly.Rob Pike1-4/+22
can't mix slices and arrays now; perhaps that should be a TODO R=rsc http://codereview.appspot.com/164079
2009-12-01explicitly catch attempt to decode into a value - must be a pointer to see ↵Rob Pike2-2/+20
the result. R=rsc http://codereview.appspot.com/163070
2009-12-01gob: fix buildRuss Cox1-1/+1
TBR=r http://codereview.appspot.com/163064
2009-12-01more gob bugsRob Pike4-25/+69
1) need to send slice and array types (was only sending element types) 2) compatibleType needs to use decoder's type map R=rsc CC=golang-dev http://codereview.appspot.com/164062
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-16Rework gobs to fix bad bug related to sharing of id's between encoder and ↵Rob Pike6-225/+138
decoder side. Fix is to move all decoder state into the decoder object. Fixes issue 215. R=rsc CC=golang-dev http://codereview.appspot.com/155077
2009-11-09 - replaced gofmt expression formatting algorithm withRobert Griesemer3-19/+19
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer8-287/+287
R=rsc, r http://go/go-review/1025029
2009-11-06- application of gofmt with one-line composite literal structs enabledRobert Griesemer1-48/+16
- this CL is dependent on CL 1025008 R=r, rsc http://go/go-review/1025009
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-34/+14
- 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-05- gofmt'ing of some stragglers, now with correct comment indentationRobert Griesemer1-1/+1
in special cases - re-gofmt'ing of some files that are now improved R=r, rsc http://go/go-review/1023003