summaryrefslogtreecommitdiff
path: root/doc/progs/sum.go
AgeCommit message (Collapse)AuthorFilesLines
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-2/+2
2009-12-16update tutorial.Rob Pike1-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/179063
2009-10-13Automated g4 rollback of changelist 35383.Rob Pike1-4/+4
*** Reason for rollback *** roll back the changes to the tutorial programs (only) since they break the automated processing used to create the tutorial. *** Original change description *** apply gofmt to the LGTM-marked files from 34501 that have not changed since I applied gofmt. R=rsc DELTA=139 (0 added, 44 deleted, 95 changed) OCL=35670 CL=35670
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox1-4/+4
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-04-15code changes for array conversion.Russ Cox1-1/+1
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
2009-03-18remove print() from the tutorial, generating a little clumsiness around "import"Rob Pike1-1/+3
R=rsc,gri DELTA=103 (36 added, 33 deleted, 34 changed) OCL=26442 CL=26491
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox1-1/+1
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-13convert composite literals from { } to ( ).Russ Cox1-1/+1
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-01-09update tutorial to new language.Rob Pike1-2/+2
add a section on printing add a section on allocation R=rsc DELTA=500 (278 added, 15 deleted, 207 changed) OCL=22381 CL=22456
2008-09-11add sections about types and constantsRob Pike1-0/+19
R=gri DELTA=133 (124 added, 0 deleted, 9 changed) OCL=15122 CL=15143