1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:44:39 -07:00
go/src
Roger Peppe 18274e0075 Add IndexFunc and LastIndexFunc.
Change TrimRight and TrimLeft to use these functions.
Incidentally fix minor bug in TrimRight.
Add some test cases for this.
YMMV whether it's worth saving the closure allocation.

R=r, r2
CC=golang-dev, hoisie, rsc
https://golang.org/cl/1198044
2010-06-14 14:54:48 -07:00
..
cmd gc: no more ... 2010-06-14 11:24:51 -07:00
lib9 rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
libbio
libcgo Correct _cgo_free when C ABI does not pass first arg on stack. 2010-05-30 22:22:47 -07:00
libmach libmach: skip __nl_symbol_ptr section on OS X 2010-05-24 14:30:51 -07:00
pkg Add IndexFunc and LastIndexFunc. 2010-06-14 14:54:48 -07:00
all-arm.bash
all-nacl.bash nacl: another attempt at fixing build 2010-05-03 11:12:54 -07:00
all.bash build script tweaks 2010-03-31 19:48:33 -07:00
clean.bash
env.bash rename GOOS=mingw to GOOS=windows 2010-04-29 23:45:14 -07:00
Make.386
Make.amd64
Make.arm
make.bash build; allow MAKEFLAGS to be set outside the build scripts 2010-05-15 10:08:29 -07:00
Make.cmd Make.cmd: make 'all' the default target (was 'clean': BUG) 2010-03-19 16:33:27 -07:00
Make.common Factor the Makefiles to make writing outside Makefiles easier. 2010-03-19 15:14:46 -07:00
Make.conf
Make.pkg Add _cgo_export.[ch] targets so that make knows how they are 2010-05-03 11:07:22 -07:00
quietgcc.bash
run.bash run.bash: remove MAKEFLAGS=-j4 to prevent crashing on freebsd 2010-04-05 10:53:38 +10:00
sudo.bash
version.bash version.bash: cope with ancient Mercurial 2010-03-16 18:45:06 -07:00