The Go programming language
Go to file
Andrew Gerrand efb3af3d5c [release-branch.go1.2] strings: fix Replacer bug with prefix matches
««« CL 16880043 / 0eb6508d3e88
strings: fix Replacer bug with prefix matches

singleStringReplacer had a bug where if a string was replaced
at the beginning and no output had yet been produced into the
temp buffer before matching ended, an invalid nil check (used
as a proxy for having matched anything) meant it always
returned its input.

Fixes #6659

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/16880043
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/20570044
2013-11-01 11:18:49 +11:00
api api: add go1.2.txt, use in tests 2013-10-18 13:36:59 +09:00
doc spec: clarify re-use of underlying arrays in slice operations 2013-10-16 16:16:54 -07:00
include build: remove various uses of C undefined behavior 2013-09-09 15:07:23 -04:00
lib [release-branch.go1.2] plan9: correct create permissions with union directory 2013-11-01 11:16:32 +11:00
misc [release-branch.go1.2] misc/dist: use go.tools release branch 2013-11-01 11:15:47 +11:00
src [release-branch.go1.2] strings: fix Replacer bug with prefix matches 2013-11-01 11:18:49 +11:00
test [release-branch.go1.2] test/mapnan: use time.Now instead of syscall.Getrusage 2013-11-01 11:15:02 +11:00
.hgignore build: ignore new zfiles, delete temp goplay binary in run.bash 2013-08-02 19:14:13 -07:00
.hgtags untag go1.2rc1 2013-09-19 22:34:33 +10:00
AUTHORS [release-branch.go1.2] C+A: add Matthew Cottingham (Individual CLA) 2013-11-01 11:17:17 +11:00
CONTRIBUTORS [release-branch.go1.2] C+A: add Matthew Cottingham (Individual CLA) 2013-11-01 11:17:17 +11:00
LICENSE
PATENTS
README
VERSION go1.2rc2 2013-10-18 13:53:33 +09:00
favicon.ico godoc: update favicon 2012-10-11 17:02:36 +11:00
robots.txt

README

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.