summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* weekly.2012-03-04weekly.2012-03-04Andrew Gerrand2012-03-051-0/+118
| | | | | | R=golang-dev, dsymonds, bradfitz, minux.ma CC=golang-dev http://codereview.appspot.com/5732058
* doc: add command docs page, canonicalize reference pathsAndrew Gerrand2012-03-058-19/+118
| | | | | | R=golang-dev, kyle, r CC=golang-dev http://codereview.appspot.com/5728055
* doc: add help page, update project pageAndrew Gerrand2012-03-053-10/+79
| | | | | | R=golang-dev, kyle, r, bradfitz CC=golang-dev http://codereview.appspot.com/5729053
* doc: clean up docs page, refer to wiki, change install doc pathsAndrew Gerrand2012-03-058-133/+77
| | | | | | R=golang-dev, minux.ma, r CC=golang-dev http://codereview.appspot.com/5728051
* cmd: update formatting of usage messagesAndrew Gerrand2012-03-057-12/+28
| | | | | | R=golang-dev, r, minux.ma CC=golang-dev http://codereview.appspot.com/5738045
* doc/progs: update for go 1Rob Pike2012-03-056-40/+37
| | | | | | | | Fixes issue 3076. R=golang-dev, dsymonds, r CC=golang-dev http://codereview.appspot.com/5727056
* cmd/go: fix grammar error in help messagesRob Pike2012-03-052-2/+2
| | | | | | R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5729061
* doc/effective_go: minor fixShenghou Ma2012-03-052-2/+2
| | | | | | | | | | We have 'gofmt' and 'go fmt', but not 'go tool fmt'. R=golang-dev, kyle, r CC=golang-dev http://codereview.appspot.com/5739043 Committer: Rob Pike <r@golang.org>
* html/template: fix comment typoScott Lawrence2012-03-051-1/+1
| | | | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5730051 Committer: Rob Pike <r@golang.org>
* misc: update usage message in benchcmp for go toolDave Cheney2012-03-051-1/+1
| | | | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5727052 Committer: Rob Pike <r@golang.org>
* doc: change menu, tweak front pageAndrew Gerrand2012-03-053-33/+34
| | | | | | R=golang-dev, kyle, r CC=golang-dev http://codereview.appspot.com/5729052
* net: move MAC address parser into distinct fileMikio Hara2012-03-054-121/+139
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5727054
* doc: fix another typo in article on defer, panic and recoverFrancisco Souza2012-03-042-2/+2
| | | | | | | | | | Fixes issue 3177 R=adg CC=golang-dev http://codereview.appspot.com/5728057 Committer: Andrew Gerrand <adg@golang.org>
* godoc: fix codewalksAndrew Gerrand2012-03-041-6/+6
| | | | | | R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5732056
* doc: fixed minor typo in article on deferFrancisco Souza2012-03-042-2/+2
| | | | | | | | | | Fixes issue 3176. R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/5737043 Committer: Andrew Gerrand <adg@golang.org>
* A+C: add Francisco SouzaAndrew Gerrand2012-03-042-0/+2
| | | | | | R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5729054
* godoc: hide "Subdirectories" subheading if it is the only sectionAndrew Gerrand2012-03-041-1/+1
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5731056
* text/template: one more test caseRob Pike2012-03-041-1/+2
| | | | | | | | | Missed a case for variadic functions with too few arguments. The code passes, and with the right error, but might as well record the test case. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5732050
* text/template: clean up function valuesRob Pike2012-03-034-18/+86
| | | | | | | | | | | | | | | | The recent addition of automatic function invocation generated some troublesome ambiguities. Restore the previous behavior and compensate by providing a "call" builtin to make it easy to do what the automatic invocation did, but in a clear and explicit manner. Fixes issue 3140. At least for now. R=golang-dev, dsymonds, r CC=golang-dev http://codereview.appspot.com/5720065
* cmd/go: fix relative imports againRuss Cox2012-03-0214-92/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I tried before to make relative imports work by simply invoking the compiler in the right directory, so that an import of ./foo could be resolved by ./foo.a. This required creating a separate tree of package binaries that included the full path to the source directory, so that /home/gopher/bar.go would be compiled in tmpdir/work/local/home/gopher and perhaps find a ./foo.a in that directory. This model breaks on Windows because : appears in path names but cannot be used in subdirectory names, and I missed one or two places where it needed to be removed. The model breaks more fundamentally when compiling a test of a package that lives outside the Go path, because we effectively use a ./ import in the generated testmain, but there we want to be able to resolve the ./ import of the test package to one directory and all the other ./ imports to a different directory. Piggybacking on the compiler's current working directory is then no longer possible. Instead, introduce a new compiler option -D prefix that makes the compiler turn a ./ import into prefix+that, so that import "./foo" with -D a/b/c turns into import "a/b/c/foo". Then we can invent a package hierarchy "_/" with subdirectories named for file system paths: import "./foo" in the directory /home/gopher becomes import "_/home/gopher/foo", and since that final path is just an ordinary import now, all the ordinary processing works, without special cases. We will have to change the name of the hierarchy if we ever decide to introduce a standard package with import path "_", but that seems unlikely, and the detail is known only in temporary packages that get thrown away at the end of a build. Fixes issue 3169. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5732045
* doc: remove roadmap documentAndrew Gerrand2012-03-033-149/+0
| | | | | | R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5726047
* doc: change wording on references pageAndrew Gerrand2012-03-031-1/+2
| | | | | | R=golang-dev CC=golang-dev http://codereview.appspot.com/5728050
* misc: add zsh completion for go tool.R?my Oudompheng2012-03-031-0/+137
| | | | | | R=golang-dev, minux.ma, rsc CC=golang-dev, remy http://codereview.appspot.com/5699079
* doc/install-source.html: update for go toolRob Pike2012-03-031-56/+48
| | | | | | | | | Make some updates, get rid of mentions of make. There remain a number of open questions. R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/5720057
* Xcode: move Xcode3 specific files into sub directoryRobert Griesemer2012-03-023-0/+3
| | | | | | | | | - makes space for Xcode4 files - added README R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5720059
* fix build for FreeBSD/amd64Shenghou Ma2012-03-031-1/+1
| | | | | | R=rsc, golang-dev, iant CC=golang-dev http://codereview.appspot.com/5732043
* ld: allow more -L optionsShenghou Ma2012-03-032-6/+17
| | | | | | | | | Dynamically allocate the libdir array, so we won't need to bother it again. Enhances CL 5727043. R=rsc CC=golang-dev http://codereview.appspot.com/5731043
* go/printer: simpler exprList code, more testsRobert Griesemer2012-03-023-47/+182
| | | | | | | | | | | | | | | | | | | Except for the tests, this is mostly deleting code: - removed several exprListModes: blankStart: easily done explicitly, and trailing blanks are cleaned up by the trimmer post-pass blankEnd: never used commaSep: all exprLists calls had this set - added test cases for multi-line returns (for a later fix of issue 1207) - no formatting changes R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5672062
* all: more typosRobert Griesemer2012-03-025-6/+6
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev http://codereview.appspot.com/5720044
* net: during short test, don't bother timeout longer than expectedShenghou Ma2012-03-031-1/+1
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5716053
* doc/go1: minor correctionsShenghou Ma2012-03-032-6/+4
| | | | | | | | | Set dagger looks very much like t in some fonts, so superscript it. os/signal is no longer in exp. R=golang-dev, adg CC=golang-dev http://codereview.appspot.com/5720049
* cmd/go: avoid repeated include dirs.R?my Oudompheng2012-03-021-1/+1
| | | | | | | | | | Fixes issue 3171. R=golang-dev, rsc CC=golang-dev, remy http://codereview.appspot.com/5724045 Committer: Russ Cox <rsc@golang.org>
* doc: fix some HTML errors in code.htmlSanjay Menakuru2012-03-021-3/+3
| | | | | | | | R=golang-dev, rsc CC=adg, golang-dev http://codereview.appspot.com/5720050 Committer: Russ Cox <rsc@golang.org>
* cmd/go: fix test import dependency bugRuss Cox2012-03-023-10/+20
| | | | | | | | | | | Fixes a problem Rob is having with goprotobuf. Cannot add a test because the same case is more broken when using ./ imports. That still needs to be fixed, and is one aspect of issue 3169. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5725043
* cmd/go: fixes for gccgo.R?my Oudompheng2012-03-023-23/+24
| | | | | | | | | Also remove useless "install" argument to pkgpath now that go/build defines package install locations. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5714059
* build: add GO_ prefix to LDFLAGS and GCFLAGSGustavo Niemeyer2012-03-021-10/+10
| | | | | | | | | | Build environments will often define stock LDFLAGS that are not compatible with the gc ld, causing non-obvious failures midway through the build. R=golang-dev, rsc, minux.ma, rsc CC=golang-dev http://codereview.appspot.com/5724044
* os: sleep 5ms after process has exited on windowsAlex Brainman2012-03-021-0/+5
| | | | | | | | Fixes issue 2866. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5719047
* doc: expand code.html to discuss the go tool in more depthAndrew Gerrand2012-03-021-195/+354
| | | | | | R=golang-dev, balasanjay, r CC=golang-dev http://codereview.appspot.com/5640045
* os: implement UserTime/SystemTime on windowsAlex Brainman2012-03-025-6/+47
| | | | | | | | Fixes issue 3145. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5721044
* os: fix grammar in ProcessState commentRob Pike2012-03-022-2/+2
| | | | | | | | Asymptotic convergence. R=golang-dev, dsymonds CC=golang-dev http://codereview.appspot.com/5719045
* os: centralize documentation of Process and ProcessStateRuss Cox2012-03-015-73/+91
| | | | | | | | | | | | | Also change Wait to say "exit" instead of "exit or stop". I notice that Pid is not implemented on all systems. Should we fix that? Fixes issue 3138. R=golang-dev, alex.brainman, r CC=golang-dev http://codereview.appspot.com/5710056
* doc: update go1 for html changesAndrew Gerrand2012-03-022-0/+12
| | | | | | R=golang-dev, rsc, r CC=golang-dev http://codereview.appspot.com/5713054
* go/build: fix buildRuss Cox2012-03-012-104/+109
| | | | | | | | | | | | | Presumably something about the very large go/build doc comment breaks the build constraint parser in cmd/dist. I don't feel like debugging C code right now, so move it into its own file. If cmd/dist decides doc.go is not part of the package, it will still build correctly. R=golang-dev TBR=golang-dev CC=golang-dev http://codereview.appspot.com/5722043
* go/build: document GOPATHRuss Cox2012-03-012-1/+51
| | | | | | | | Fixes issue 2332. R=golang-dev, remyoudompheng, gri, r, r CC=golang-dev http://codereview.appspot.com/5710055
* doc: describe API changes to go/buildRuss Cox2012-03-012-0/+32
| | | | | | R=golang-dev, gri, r CC=golang-dev http://codereview.appspot.com/5711059
* cmd/go: fix verbose command displayingGustavo Niemeyer2012-03-011-1/+1
| | | | | | R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5715050
* cmd/go: fix -I flag for gc commandGustavo Niemeyer2012-03-011-1/+3
| | | | | | R=rsc, remyoudompheng CC=golang-dev http://codereview.appspot.com/5711056
* all: fixed various typosRobert Griesemer2012-03-0111-15/+15
| | | | | | | | (Semi-automatically detected.) R=golang-dev, remyoudompheng, r CC=golang-dev http://codereview.appspot.com/5715052
* reflect: expand doc for Value.InterfaceRuss Cox2012-03-011-2/+4
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5716057
* spec: clarifications around exports, uniqueness of identifiersRobert Griesemer2012-03-011-28/+44
| | | | | | | | | | | | | | | | | | | | | | | | | - Define what it means for two identifiers to be unique. - The current spec is incorrect about exported identifiers: for instance, it excluded fields of non-exported types of exported variables from being exported. It is easier to leave the detailed specification away and let the rest of the spec govern access of exported identifiers. - The current spec is incorrect about qualified identifiers: It simply required that an identifier be exported to be valid in a qualified identifier. However, qualified identifiers can only access exported identifiers declared in the package block of the imported package. Fixes issue 1551. R=r, rsc, iant, ken CC=golang-dev http://codereview.appspot.com/5711043