summaryrefslogtreecommitdiff
path: root/doc/progs
Commit message (Collapse)AuthorAgeFilesLines
...
* doc/progs: test defer programsAndrew Gerrand2012-01-052-0/+13
| | | | | | R=golang-dev, iant CC=golang-dev https://golang.org/cl/5517044
* doc/progs/run: go1 prints output; fix testRob Pike2011-12-211-1/+1
| | | | | | R=golang-dev, adg CC=golang-dev https://golang.org/cl/5502060
* doc/go1: timeRob Pike2011-12-121-13/+29
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/5477077
* doc: add Error Handling articleAndrew Gerrand2011-12-135-0/+307
| | | | | | | | | | | | Originally published on The Go Programming Language Blog, July 12, 2011. http://blog.golang.org/2011/07/error-handling-and-go.html Update #2547 R=golang-dev, r CC=golang-dev https://golang.org/cl/5475060
* doc/go1: the simpler package changesRob Pike2011-12-121-0/+26
| | | | | | R=golang-dev, fullung, dsymonds, r, adg CC=golang-dev https://golang.org/cl/5477056
* doc: remove file.go from run (fix windows build)Andrew Gerrand2011-12-121-1/+0
| | | | | | R=golang-dev, r, alex.brainman, r CC=golang-dev https://golang.org/cl/5479069
* doc: add Defer, Panic, and Recover articleAndrew Gerrand2011-12-123-18/+143
| | | | | | | | | | | | Originally published on The Go Programming Language Blog, August 4 2010. http://blog.golang.org/2010/08/defer-panic-and-recover.html Update #2547 R=golang-dev, r, r CC=golang-dev https://golang.org/cl/5479053
* doc/go1: the rest of the language changesRob Pike2011-12-091-1/+51
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/5478047
* doc/go1: most of the simple language changesRob Pike2011-12-081-0/+74
| | | | | | R=rsc, adg, r CC=golang-dev https://golang.org/cl/5477044
* doc/go1: map deletionRob Pike2011-12-072-0/+25
| | | | | | | | | | | | | This CL is in part a proposal for how to write these sections: - Brief discussion of change - No attempt to analyze the thinking about it - Old code - New code, runnable if possible - How to update old programs R=golang-dev, remyoudompheng, gri, adg CC=golang-dev https://golang.org/cl/5454044
* doc: do not slice array literalRuss Cox2011-12-021-1/+2
| | | | | | | | | | | | | | The special case in the spec is that you can take the address of a composite literal using the & operator. A composite literal is not, however, generally addressable, and the slice operator requires an addressable argument, so [3]int{1,2,3}[:] is invalid. This tutorial code and one bug report are the only places in the tree where it appears. R=r, gri CC=golang-dev https://golang.org/cl/5437120
* doc/progs: fix windows version to satisfy new errorAlex Brainman2011-11-141-17/+5
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/5376089
* syscall: use errorRuss Cox2011-11-131-17/+5
| | | | | | | | | | | - syscall (not os) now defines the Errno type. - the low-level assembly functions Syscall, Syscall6, and so on return Errno, not uintptr - syscall wrappers all return error, not uintptr. R=golang-dev, mikioh.mikioh, r, alex.brainman CC=golang-dev https://golang.org/cl/5372080
* tutorial: describe unidirectional channelsRob Pike2011-11-102-3/+3
| | | | | | R=golang-dev, adg, gri CC=golang-dev https://golang.org/cl/5370058
* renaming_4: gofix -r everything/but/src/pkgRob Pike2011-11-081-2/+2
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/5338043
* non-pkg: gofix -r error -force=errorRuss Cox2011-11-014-15/+15
| | | | | | R=golang-dev, iant, r, r CC=golang-dev https://golang.org/cl/5307066
* tutorial,effective_go: prepare for error changeRob Pike2011-11-012-4/+4
| | | | | | R=adg, rsc CC=golang-dev https://golang.org/cl/5316068
* ld: Fixes issue 1899 ("cannot create 8.out.exe")Jaroslavas Počepko2011-10-141-3/+8
| | | | | | | | http://code.google.com/p/go/issues/detail?id=1899 R=rsc, alex.brainman, bsiegert, hectorchu, bradfitz CC=golang-dev https://golang.org/cl/4978047
* doc/progs: fix windows/amd64Jaroslavas Počepko2011-08-292-2/+2
| | | | | | R=rsc CC=alex.brainman, golang-dev, vcc.163 https://golang.org/cl/4965050
* effective go: fix erroneous quoting of ampersands that cropped upRob Pike2011-08-231-2/+1
| | | | | | R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4937047
* effective go: extract and test a couple more examples.Rob Pike2011-08-223-0/+94
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4937045
* effective_go: convert to use tmpltohtml.Rob Pike2011-08-212-0/+48
| | | | | | | | | | | Also update the big example to the new template system. There are a number of other examples that should be extracted; this CL serves as an introduction to the approach. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4923043
* doc/progs: gofmt -wMikio Hara2011-07-0913-60/+57
| | | | | | R=r, gri, r CC=golang-dev https://golang.org/cl/4662085
* windows: define and use syscall.HandleWei Guangjing2011-07-012-1/+95
| | | | | | | | Fixes #1487. R=rsc, alex.brainman, go.peter.90, mikioh.mikioh, mattn.jp CC=golang-dev https://golang.org/cl/4600042
* sort: change IntArray etc. to IntSlice for better name hygiene.Rob Pike2011-06-112-20/+20
| | | | | | R=golang-dev, gri CC=golang-dev https://golang.org/cl/4602054
* tutorial: replace the forever loops with finite counts in sieve programs.Rob Pike2011-04-272-2/+2
| | | | | | | | | | | Fixes #1742. I hope. Also this picks up an update to go_tutorial.html that should already have happened. R=brainman, rsc, peterGo CC=golang-dev https://golang.org/cl/4452050
* tutorial: modernize the definition and use of Open.Rob Pike2011-04-184-4/+21
| | | | | | R=golang-dev, iant CC=golang-dev https://golang.org/cl/4446053
* doc/progs: make sure all programs compile and runRob Pike2011-01-312-3/+2
| | | | | | | | Fixes #1455. R=rsc CC=golang-dev https://golang.org/cl/4079055
* docs: float->float64 plus a couple of other tweaks.Rob Pike2011-01-191-6/+6
| | | | | | R=rsc, gri CC=golang-dev https://golang.org/cl/3978042
* tutorial: make stdin, stdout, stderr work on Windows.Rob Pike2011-01-181-3/+3
| | | | | | R=brainman CC=golang-dev https://golang.org/cl/4042042
* build: add a few missing --no-print-directoryRuss Cox2010-12-131-1/+1
| | | | | | | | | | Reported by W. Michael Petullo <mike@flyn.org> Fixes #1269. R=r, r2 CC=golang-dev https://golang.org/cl/3618041
* tutorial: a couple of minor fixes.Rob Pike2010-12-092-3/+3
| | | | | | | | Fixes #1333. R=rsc, gri CC=golang-dev https://golang.org/cl/3556041
* doc/tutorial: update for slice changes.Rob Pike2010-09-103-11/+11
| | | | | | | | | | Awaiting the lower-bound change before checkin. Fixes #1067. R=rsc, iant, gri CC=golang-dev https://golang.org/cl/2105043
* build: remove unnecessary references to GOBIN and GOROOTChristian Himpel2010-08-301-7/+5
| | | | | | | | | All scripts and makefiles assume that GOBIN is correctly set in PATH. R=rsc CC=golang-dev https://golang.org/cl/2043041
* build: no required environment variablesRuss Cox2010-08-181-1/+1
| | | | | | R=adg, r, PeterGo CC=golang-dev https://golang.org/cl/1942044
* os: change the type of permissions argument for Open etc. to uint32.Rob Pike2010-08-041-4/+4
| | | | | | | | | Besides being more correct, it protects against people accidentally exchanging the permission and open mode arguments to Open. R=rsc CC=golang-dev https://golang.org/cl/1904045
* single argument panicRuss Cox2010-03-302-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 https://golang.org/cl/850041
* doc: Use byte("...") over byte{...}Christopher Wedgwood2010-02-251-1/+1
| | | | | | R=rsc, r CC=golang-dev https://golang.org/cl/224069
* update tutorial.Rob Pike2009-12-1616-201/+207
| | | | | | R=rsc CC=golang-dev https://golang.org/cl/179063
* Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell2009-12-111-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 https://golang.org/cl/171044
* go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia2009-11-231-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 #115. R=rsc, dsymonds1 https://golang.org/cl/157067
* make all.bash finish on FreeBSDRuss Cox2009-11-181-1/+1
| | | | | | R=dho CC=golang-dev https://golang.org/cl/156067
* add a paragraph about semicolons to the tutorial.Rob Pike2009-11-121-1/+1
| | | | | | | | | | fix a typo caught by kakugawa@gmail.com Fixes #92. R=rsc CC=golang-dev https://golang.org/cl/152105
* tutorial fixesRuss Cox2009-11-072-4/+4
| | | | | | R=r CC=go-dev http://go/go-review/1024014
* fixups in the tutorialRob Pike2009-11-015-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
* excise some internal references.Russ Cox2009-10-141-1/+1
| | | | | | | R=r DELTA=209 (65 added, 114 deleted, 30 changed) OCL=35718 CL=35721
* align the tutorial with the renaming of SortInterface.Rob Pike2009-10-131-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
* Automated g4 rollback of changelist 35383.Rob Pike2009-10-1314-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
* another round of gofmt applicationsRuss Cox2009-10-062-13/+13
| | | | | | | R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
* apply gofmt to the LGTM-marked files from 34501Russ Cox2009-10-0612-82/+126
| | | | | | | | | that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383