- 05 Feb, 2011 2 commits
-
-
Robert Griesemer authored
If a multi-line raw string is the first token on a line, it should not be indented because the following lines (belonging to the raw string) are not indented either. Adjusted src of ebnf/ebnf_test.go manually as it now is formatted as expected. gofmt -w src misc Fixes #1072. R=r CC=golang-dev https://golang.org/cl/4119056
-
Kyle Consalus authored
Fixes #676. R=r, rsc, r2 CC=golang-dev https://golang.org/cl/4127043
-
- 04 Feb, 2011 13 commits
-
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/4130046
-
Rob Pike authored
indirect through a pointer. Fixes #1478. R=rsc, r2 CC=golang-dev https://golang.org/cl/4131045
-
Rob Pike authored
signed or unsigned integers using %v or the formatless scanner. That is, Sscan("0x11", &i) or Sscanf("0x11", "%v", &i) will now set i to 17. If a format other than %v is presented, the behavior is as before. Fixes #1469. R=rsc CC=golang-dev https://golang.org/cl/4131042
-
Yuval Pavel Zholkover authored
Was crashing with GOOS=plan9 unless -s was passed. Add symbols and line numbers to Plan 9 a.out. R=rsc CC=golang-dev https://golang.org/cl/4080050
-
Russ Cox authored
Must be invoked as ./clean.bash --gomake make (or --gomake gmake, depending on the name of GNU make). R=niemeyer CC=golang-dev https://golang.org/cl/4023065
-
Russ Cox authored
Thanks to mhantsch@gmail.com. R=adg, brainman CC=golang-dev https://golang.org/cl/4092048
-
Gustavo Niemeyer authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4121058
-
Robert Griesemer authored
Removed most of the detailed examples about handing panics from the go spec since it's now covered by Effective Go. R=r, rsc, iant, ken2 CC=golang-dev https://golang.org/cl/4128058
-
Adam Langley authored
Note that DSA public key support is nascent and the verification functions clearly don't support it yet. I'm intending to get RSA keys working first. R=bradfitzgo CC=golang-dev https://golang.org/cl/3973054
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4079063
-
Alex Brainman authored
Fixes #1004. Fixes #1460. R=mattn, r, niemeyer, rog, rsc CC=golang-dev https://golang.org/cl/4029053
-
Yasuhiro Matsumoto authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4121057
-
Robert Griesemer authored
The value of the internal flag includeNonGoFile really is the value of the fulltextIndex flag. R=rsc CC=golang-dev https://golang.org/cl/4044052
-
- 03 Feb, 2011 23 commits
-
-
Rob Pike authored
ReadRune. (If you have a Reader but not a RuneReader, use bufio.) The matching code is a few percent slower but significantly cleaner. R=rsc CC=golang-dev https://golang.org/cl/4125046
-
Gustavo Niemeyer authored
As discussed in the mailing list, this adds a simple barrier implementation to the sync package which enables one or more goroutines to wait for a counter to go down to zero. R=rsc, rog, r CC=golang-dev https://golang.org/cl/3770045
-
Robert Griesemer authored
R=r, r2 CC=golang-dev https://golang.org/cl/4128055
-
Rob Pike authored
R=rsc, gri CC=golang-dev https://golang.org/cl/4130044
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/4001056
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/4128054
-
Dave Cheney authored
notes: * due to Issue 1466 the Msghdr struct for src/pkg/syscall/ztypes_darwin_386.go src/pkg/syscall/ztypes_darwin_amd64.go had to be edited after the godefs generation. * ztypes_*.go files for linux, freebsd and darwin have been prepared on the correct host OS and ARCH. While the total increase is a dozen lines per file the diff is larger due to a change to godefs, http://code.google.com/p/go/source/detail?r=c79e30afe9c8 while has altered the names of Pad members which causes gofmt to realign the affected structs R=rsc, mikioh CC=golang-dev https://golang.org/cl/4119053
-
Russ Cox authored
R=adg, gri CC=golang-dev https://golang.org/cl/4126055
-
Robert Griesemer authored
This change makes it legal to pass a struct value as receiver outside the package declaring the struct even if the respective struct type has non-exported fields. This is a backwards-compatible language change motivated by the fact that it is already possible to circumvent the assignment restriction when calling methods through interfaces (see issue 1402). R=r, rsc, iant, ken2 CC=golang-dev https://golang.org/cl/3926044
-
Gustavo Niemeyer authored
This enables #cgo directives to contain a os/arch specification which restricts the definition of the given option to matching systems. For example: #cgo amd64 CFLAGS: -DAMD64=1 #cgo linux CFLAGS: -DLINUX=1 #cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1 R=rsc CC=golang-dev https://golang.org/cl/4121048
-
Russ Cox authored
The object files begin with a header that is $GOARCH on a line by itself. This CL changes that header to go object $GOOS $GOARCH release.2011-01-01 4567+ where the final two fields are the most recent release tag and the current hg version number. All objects imported into a Go compilation or linked into an executable must have the same header line, and that header line must match the compiler and linker versions. The effect of this will be that if you update and run all.bash and then try to link in objects compiled with an earlier version of the compiler (or invoke the wrong version of the compiler), you will get an error showing the different headers instead of perhaps silent incompatibility. Normal usage with all.bash should be unaffected, because all.bash deletes all the object files in $GOROOT/pkg/$GOOS_$GOARCH and cleans all intermediate object files before starting. This change is intended to diagnose stale objects arising when users maintaining alternate installation directories forget to rebuild some of their files after updating. It should help make the adoption of $GOPATH (CL 3780043) less error-prone. R=ken2, r CC=golang-dev https://golang.org/cl/4023063
-
Russ Cox authored
Prior to this CL, there were two requirements about the package name main. 1. The package that sits at the root of the import graph (the one where program execution begins) must be named main. 2. No other package in the program can be named main. This CL only removes requirement #2, which can be done without changing any other Go documentation. The new wording and formatting is such that removing requirement #1 can be done by deleting a single line, but making that change is explicitly outside the scope of this CL, because it would require changes to other documentation at the same time. R=gri, r, gri1 CC=golang-dev https://golang.org/cl/4126053
-
Adam Langley authored
Since nobody suggested major changes to the higher level API, I'm splitting up the lower level code for review. This is the first of the changes for the packet reading/writing code. It deliberately doesn't include a Makefile because the package is incomplete. R=bradfitzgo CC=golang-dev https://golang.org/cl/4080051
-
Adam Langley authored
* Don't require lines to be full. * Don't forget to flush the line buffer. * Update the test so that it doesn't happen to include only full lines in order to test the above. * Always write the line after the header as GNUPG expects it. R=bradfitzgo CC=golang-dev https://golang.org/cl/4124043
-
Adam Langley authored
OpenPGP changed its OCFB mode for more modern packets (for example, the MDC symmetrically encrypted packet). This change adds a bool to determine which mode is used. R=bradfitzgo, r, rsc CC=golang-dev https://golang.org/cl/4126041
-
Christopher Nielsen authored
Fixes #1413. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4007041
-
Russ Cox authored
R=golang-dev, r2 CC=golang-dev https://golang.org/cl/3989061
-
Russ Cox authored
GC is still single-threaded. Multiple threads will happen in another CL. Garbage collection pauses are typically about half as long as they were before this CL. R=brainman, iant, r CC=golang-dev https://golang.org/cl/3975046
-
Russ Cox authored
Shot in the dark. TBR=r CC=golang-dev https://golang.org/cl/4126054
-
Yasuhiro Matsumoto authored
R=rsc CC=golang-dev https://golang.org/cl/3989059
-
Gustavo Niemeyer authored
The timestamp file is being created before cgo runs, which means errors will not prevent it from being created and thus will cause the build to break by rendering the rule up-to-date when it isn't. R=rsc CC=golang-dev https://golang.org/cl/4001049
-
Eoghan Sherry authored
Fixes #1463. R=rsc CC=golang-dev https://golang.org/cl/4079060
-
Hector Chu authored
so that spawned processes avoid inheriting pipes. Implement CloseOnExec. Make file and pipe handles inheritable. R=rsc, brainman, vincent.vanackere CC=golang-dev https://golang.org/cl/4126047
-
- 02 Feb, 2011 2 commits
-
-
Robert Griesemer authored
Newer versions of Mercurial require the configuration of Certification Authorities. R=rsc CC=golang-dev https://golang.org/cl/4128052
-
Russ Cox authored
Fixes #1452. R=r CC=golang-dev https://golang.org/cl/4023060
-