summaryrefslogtreecommitdiff
path: root/doc/progs
AgeCommit message (Collapse)AuthorFilesLines
2009-10-13align the tutorial with the renaming of SortInterface.Rob Pike1-3/+3
fix a bug in makehtml - was deleting the output! R=rsc DELTA=11 (2 added, 0 deleted, 9 changed) OCL=35672 CL=35674
2009-10-13Automated g4 rollback of changelist 35383.Rob Pike14-139/+95
*** 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-06another round of gofmt applicationsRuss Cox2-13/+13
R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox12-82/+126
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-09-15last round: non-package codeRuss Cox1-1/+1
R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox2-2/+2
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-08-13update tutorialRob Pike1-6/+6
R=rsc DELTA=30 (5 added, 0 deleted, 25 changed) OCL=33138 CL=33170
2009-06-25Change os.Error convention:Russ Cox1-4/+16
echo back context of call in error if likely to be useful. For example, if os.Open("/etc/passwd", os.O_RDONLY) fails with syscall.EPERM, it returns as the os.Error &PathError{ Op: "open", Path: "/etc/passwd" Error: os.EPERM } which formats as open /etc/passwd: permission denied Not converted: datafmt go/... google/... regexp tabwriter template R=r DELTA=1153 (561 added, 156 deleted, 436 changed) OCL=30738 CL=30781
2009-06-25add ./ to imports where necessaryRuss Cox3-3/+3
R=r DELTA=51 (4 added, 4 deleted, 43 changed) OCL=30759 CL=30778
2009-06-05restructure makefiles, scripts to factor out O= logic.Russ Cox1-8/+15
remove a few hardcoded paths elsewhere too. R=r,gri DELTA=123 (44 added, 15 deleted, 64 changed) OCL=29914 CL=29945
2009-06-01update Go tree to use new syscall package.Russ Cox2-8/+8
R=r DELTA=713 (109 added, 386 deleted, 218 changed) OCL=29707 CL=29722
2009-05-08move things out of sys into os and runtimeRuss Cox4-6/+8
R=r OCL=28569 CL=28573
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike2-6/+6
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-15code changes for array conversion.Russ Cox3-3/+3
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 Pike14-45/+42
R=rsc,gri DELTA=103 (36 added, 33 deleted, 34 changed) OCL=26442 CL=26491
2009-03-16change the tutorial to use File, file rather than FD, fd.Rob Pike6-84/+84
also make the default input for makehtml be go_tutorial.txt. R=rsc DELTA=176 (58 added, 58 deleted, 60 changed) OCL=26374 CL=26374
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox7-18/+18
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 Cox7-18/+18
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-01-30needless semicolonsRob Pike2-2/+2
R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=23967 CL=23970
2009-01-30update go code tree to new func rules.Russ Cox2-8/+8
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-30rename variable at rsc's requestRob Pike2-4/+4
R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=23896 CL=23928
2009-01-30clean up server code in tutorialRob Pike3-13/+14
R=rsc DELTA=15 (1 added, 0 deleted, 14 changed) OCL=23889 CL=23889
2009-01-20update tutorial for new export schemeRob Pike3-11/+11
R=ken,rsc DELTA=101 (9 added, 0 deleted, 92 changed) OCL=23174 CL=23188
2009-01-20delete exportRuss Cox2-15/+15
TBR=r OCL=23121 CL=23127
2009-01-16casify, cleanup sysRuss Cox3-5/+5
R=r OCL=22978 CL=22984
2009-01-16casify syscall and sequelaeRob Pike1-4/+4
R=rsc DELTA=337 (0 added, 1 deleted, 336 changed) OCL=22950 CL=22950
2009-01-15casify tutorial examplesRob Pike8-58/+58
will bring document in line in a later CL, which may include revisiting some of the names R=rsc DELTA=58 (0 added, 0 deleted, 58 changed) OCL=22906 CL=22908
2009-01-15printf->Printf etc.Rob Pike3-7/+7
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-14restore "os" identifier to keep consistent with text.Rob Pike1-1/+1
R=presotto OCL=22733 CL=22733
2009-01-09update tutorial to new language.Rob Pike14-136/+181
add a section on printing add a section on allocation R=rsc DELTA=500 (278 added, 15 deleted, 207 changed) OCL=22381 CL=22456
2009-01-09Use make instead of new to allocate a channel.Ian Lance Taylor1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=22452 CL=22455
2009-01-06make the tutorial programs run again.Rob Pike9-34/+36
(the text still needs fixing) add the tutorial programs to the test run. R=rsc DELTA=41 (6 added, 0 deleted, 35 changed) OCL=22174 CL=22174
2008-09-29fix some typos, mostlyRob Pike1-1/+1
R=gri OCL=16161 CL=16161
2008-09-17tutorial code:Rob Pike6-163/+69
tweak a program or two delete unused programs add shell script to run them all R=gri DELTA=213 (62 added, 147 deleted, 4 changed) OCL=15435 CL=15437
2008-09-16update to new communications syntaxRob Pike4-12/+11
R=gri OCL=15417 CL=15417
2008-09-16section on service multiplexingRob Pike3-6/+6
R=gri DELTA=75 (57 added, 4 deleted, 14 changed) OCL=15394 CL=15398
2008-09-16replace 235 with sieve - less problematicRob Pike5-3/+191
add programs, not yet described, to demonstrate servers. R=gri DELTA=279 (177 added, 16 deleted, 86 changed) OCL=15380 CL=15389
2008-09-15develop interfaces through catsRob Pike8-0/+436
sort 2,3,5 R=gri DELTA=648 (647 added, 0 deleted, 1 changed) OCL=15315 CL=15352
2008-09-12next section: i/o package that has structs, methodsRob Pike2-0/+75
R=gri DELTA=137 (134 added, 0 deleted, 3 changed) OCL=15251 CL=15259
2008-09-11add sections about types and constantsRob Pike2-0/+32
R=gri DELTA=133 (124 added, 0 deleted, 9 changed) OCL=15122 CL=15143
2008-09-10growing the tutorialRob Pike3-0/+52
R=gri OCL=15115 CL=15115