- 11 Oct, 2010 10 commits
-
-
Rob Pike authored
An exercise in reflection and an unusual tool. From the usage message: usage: gotry [packagedirectory] expression ... Given one expression, gotry attempts to evaluate that expression. Given multiple expressions, gotry treats them as a list of arguments and result values and attempts to find a function in the package that, given the first few expressions as arguments, evaluates to the remaining expressions as results. If the first expression has methods, it will also search for applicable methods. If there are multiple expressions, a package directory must be specified. If there is a package argument, the expressions are evaluated in an environment that includes import . "packagedirectory" Examples: gotry 3+4 # evaluates to 7 gotry strings '"abc"' '"c"' 7-5 # finds strings.Index etc. gotry regexp 'MustCompile("^[0-9]+")' '"12345"' true # finds Regexp.MatchString R=rsc, PeterGo, r2 CC=golang-dev https://golang.org/cl/2352043
-
Roger Peppe authored
Gob decoding does not overwrite fields which are zero in the encoder. Fixes #1174. R=r, r2 CC=golang-dev https://golang.org/cl/2337044
-
Jim McGrath authored
Fixes malformed object message from nm etc. Fixes #1180. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/2390042
-
Jim McGrath authored
Fixes #1177. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/2387042
-
Russ Cox authored
R=r, r2 CC=golang-dev https://golang.org/cl/2438041
-
Sam Thorogood authored
R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/2336044
-
Russ Cox authored
R=Sam CC=golang-dev https://golang.org/cl/2437041
-
Adam Langley authored
Fixes #1181. R=rsc, agl1, cw, r2 CC=golang-dev https://golang.org/cl/2414041
-
Adam Langley authored
Fixes #1146. R=rsc, agl1 CC=golang-dev https://golang.org/cl/2380042
-
Andrew Gerrand authored
Permits one to easily put a timeout in a select: select { case <-ch: // foo case <-time.After(1e6): // bar } R=r, rog, rsc, sameer1, PeterGo, iant, nigeltao_gnome CC=golang-dev https://golang.org/cl/2321043
-
- 09 Oct, 2010 1 commit
-
-
Nigel Tao authored
R=adg, ehog.hedge CC=golang-dev https://golang.org/cl/2385041
-
- 08 Oct, 2010 2 commits
-
-
Ken Thompson authored
stack is off by one if calling through reflect.Call R=rsc CC=golang-dev https://golang.org/cl/2400041
-
Andrew Gerrand authored
Auto-detect both if not set, and if GOARCH is not set use GOHOSTARCH. GOHOSTARCH is used to set the -m32 or -m64 flags for gcc. This is so that 64-bit can build binaries that run on 32-bit systems. R=rsc, iant, brainman CC=golang-dev https://golang.org/cl/2342045
-
- 07 Oct, 2010 13 commits
-
-
Anthony Martin authored
R=gri, rsc CC=golang-dev https://golang.org/cl/2212044
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/2390041
-
Russ Cox authored
Reported by Jeff Allen. R=r, r2 CC=golang-dev https://golang.org/cl/2385042
-
Russ Cox authored
Enables lookup of _jabber._tcp.gmail.com's SRV record. Fixes #1167. R=r, r2 CC=golang-dev https://golang.org/cl/2353043
-
Russ Cox authored
Was printing words at SP instead of at FP after shuffle due to nascent flag. R=r, r2 CC=golang-dev https://golang.org/cl/2316044
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/2346044
-
Luuk van Dijk authored
R=rsc, ken2, r, rsc1 CC=golang-dev https://golang.org/cl/2297042
-
Graham Miller authored
R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/2341049
-
Russ Cox authored
was x.go:7: must call (&b).*Buffer·Write now x.go:7: method b.Write is not an expression, must be called Fixes #1171. R=ken2 CC=golang-dev https://golang.org/cl/2384042
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/2365044
-
Russ Cox authored
was x.go:4: invalid operation: 1 <- "foo" (send to receive-only type int) now x.go:4: invalid operation: 1 <- "foo" (send to non-chan type int) R=ken2 CC=golang-dev https://golang.org/cl/2330042
-
Graham Miller authored
Fixes #1161. R=rsc, cwvh CC=golang-dev https://golang.org/cl/2317044
-
Russ Cox authored
R=gmiller, adg CC=golang-dev https://golang.org/cl/2362043
-
- 06 Oct, 2010 13 commits
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/2383041
-
Rob Pike authored
R=adg, rsc CC=golang-dev https://golang.org/cl/2370043
-
Russ Cox authored
Fixes #1167. R=r, r2 CC=golang-dev https://golang.org/cl/2290044
-
Russ Cox authored
The hash_next_and_deref was a dreg from a previous large value scheme. Fixes #1163. R=r, r2 CC=golang-dev https://golang.org/cl/2369043
-
Russ Cox authored
TBR=adg CC=golang-dev https://golang.org/cl/2290045
-
Russ Cox authored
Fixes #1165. R=ken2 CC=golang-dev https://golang.org/cl/2339042
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/2331045
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/2373043
-
Stephen Ma authored
R=golang-dev, r2 CC=golang-dev https://golang.org/cl/2372042
-
Mikio Hara authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/2358041
-
Albert Strasheim authored
Working on issue 1101. R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/2338042
-
Andrew Gerrand authored
R=golang-dev, r2 CC=golang-dev https://golang.org/cl/2336042
-
Stephen Ma authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/2301045
-
- 05 Oct, 2010 1 commit
-
-
Luuk van Dijk authored
R=rsc, ken2, r CC=golang-dev https://golang.org/cl/2355043
-