summaryrefslogtreecommitdiff
path: root/doc/progs
AgeCommit message (Collapse)AuthorFilesLines
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg49-5/+159
2012-05-02Imported Upstream version 1.0.1upstream/1.0.1Ondřej Surý1-2/+2
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý51-846/+1875
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý18-0/+869
2011-09-13Imported Upstream version 60Ondřej Surý18-872/+0
2011-08-03Imported Upstream version 59upstream/59Ondřej Surý4-21/+115
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý6-6/+23
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý4-12/+11
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý7-25/+23
2010-03-30single argument panicRuss Cox2-10/+12
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-02-25doc: Use byte("...") over byte{...}Christopher Wedgwood1-1/+1
R=rsc, r CC=golang-dev http://codereview.appspot.com/224069 Committer: Rob Pike <r@golang.org>
2009-12-16update tutorial.Rob Pike16-201/+207
R=rsc CC=golang-dev http://codereview.appspot.com/179063
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-4/+6
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-1/+1
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-18make all.bash finish on FreeBSDRuss Cox1-1/+1
R=dho CC=golang-dev http://codereview.appspot.com/156067
2009-11-12add a paragraph about semicolons to the tutorial.Rob Pike1-1/+1
fix a typo caught by kakugawa@gmail.com Fixes issue 92. R=rsc CC=golang-dev http://codereview.appspot.com/152105
2009-11-07tutorial fixesRuss Cox2-4/+4
R=r CC=go-dev http://go/go-review/1024014
2009-11-01fixups in the tutorialRob Pike5-14/+14
also add a section about compiling programs because some found it surprising not to have one R=rsc CC=go-dev http://go/go-review/1018011
2009-10-14excise some internal references.Russ Cox1-1/+1
R=r DELTA=209 (65 added, 114 deleted, 30 changed) OCL=35718 CL=35721
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