- 06 Dec, 2011 11 commits
-
-
Adam Langley authored
This avoids a problem when creating certificates with parents that were produce by other code: the Go structures don't contain all the information about the various ASN.1 string types etc and so that information would otherwise be lost. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5453067
-
Rob Pike authored
Allow the text template to handle the error case of no template with the given name. Simplification suggested by Mike Samuel. R=mikesamuel CC=golang-dev https://golang.org/cl/5437147
-
Rob Pike authored
mallocs per Sprintf("%x"): 1 mallocs per Sprintf("%g"): 4 R=golang-dev, gri CC=golang-dev https://golang.org/cl/5449106
-
Maxim Pimenov authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5448115
-
Robert Griesemer authored
(Note that the Int and Uint benchmarks use different test sets and thus cannot be compared against each other. Int and Uint conversions are approximately the same speed). Before (best of 3 runs): strconv_test.BenchmarkFormatInt 100000 15636 ns/op strconv_test.BenchmarkAppendInt 100000 18930 ns/op strconv_test.BenchmarkFormatUint 500000 4392 ns/op strconv_test.BenchmarkAppendUint 500000 5152 ns/op After (best of 3 runs): strconv_test.BenchmarkFormatInt 200000 10070 ns/op (-36%) strconv_test.BenchmarkAppendInt 200000 7097 ns/op (-63%) strconv_test.BenchmarkFormatUint 1000000 2893 ns/op (-34%) strconv_test.BenchmarkAppendUint 500000 2462 ns/op (-52%) R=r, rsc, r CC=golang-dev https://golang.org/cl/5449093
-
Russ Cox authored
Missed when I removed direct map/func equality. R=ken2 CC=golang-dev https://golang.org/cl/5452052
-
Russ Cox authored
When I disallowed map + func comparisons, I only did it in the static case and missed the comparisons via == on interface values. Fixing that turned these up. R=nigeltao, r CC=golang-dev https://golang.org/cl/5440103
-
Dave Cheney authored
This is part one of a small set of CL's that aim to resolve the outstanding TODOs relating to channel close and blocking behavior. Firstly, the hairy handling of assigning the peersId is now done in one place. The cost of this change is the slightly paradoxical construction of the partially created clientChan. Secondly, by creating clientChan.stdin/out/err when the channel is opened, the creation of consumers like tcpchan and Session is simplified; they just have to wire themselves up to the relevant readers/writers. R=agl, gustav.paul, rsc CC=golang-dev https://golang.org/cl/5448073
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5437142
-
Andrew Gerrand authored
Fixes #2530. R=golang-dev, agl CC=golang-dev https://golang.org/cl/5449101
-
Rob Pike authored
This is a slight change to fmt's semantics, but means that if you use %d to print an integer with a Stringable value, it will print as an integer. This came up because Time.Month() couldn't cleanly print as an integer rather than a name. Using %d on Stringables is silly anyway, so there should be no effect outside the fmt tests. As a mild bonus, certain recursive failures of String methods will also be avoided this way. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5453053
-
- 05 Dec, 2011 13 commits
-
-
Volker Dobler authored
Fixes #2466. R=golang-dev, adg CC=golang-dev https://golang.org/cl/5451094
-
Russ Cox authored
R=golang-dev, gri, adg, r CC=golang-dev https://golang.org/cl/5434098
-
Russ Cox authored
All but 3 cases (in gcimporter.go and hixie.go) are automatic conversions using gofix. No attempt is made to use the new Append functions even though there are definitely opportunities. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5447069
-
Russ Cox authored
R=golang-dev, bradfitz, gri, r, agl CC=golang-dev https://golang.org/cl/5434095
-
Luuk van Dijk authored
Includes minimal change to gcimporter to keep it working, R=rsc, gri CC=golang-dev https://golang.org/cl/5431046
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5437136
-
Russ Cox authored
R=gri, r, gustavo, r CC=golang-dev https://golang.org/cl/5451099
-
Charles L. Dorian authored
Also change "Special conditions" to "Special cases" as in other functions. R=rsc, golang-dev CC=golang-dev https://golang.org/cl/5440078
-
Rémy Oudompheng authored
By converting array indices to uint8, they are automatically constrained in the array range, and the binary AND with 0xff is no longer needed anymore. Before: aes.BenchmarkEncrypt 363 ns/op After: aes.BenchmarkEncrypt 273 ns/op R=golang-dev, gri, agl CC=golang-dev, remy https://golang.org/cl/5450084
-
Russ Cox authored
Equality on structs will require arbitrary code for type equality, so change algorithm in type data from uint8 to table pointer. In the process, trim top-level map structure from 104/80 bytes (64-bit/32-bit) to 24/12. Equality on structs will require being able to call code generated by the Go compiler, and C code has no way to access Go return values, so change the hash and equal algorithm functions to take a pointer to a result instead of returning the result. R=ken CC=golang-dev https://golang.org/cl/5453043
-
Andrew Gerrand authored
gobuilder: -commit mode for packages gobuilder: cripple -package mode temporarily R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5450092
-
Andrew Gerrand authored
misc/dashboard: support unauthenticated GETs misc/dashboard: add ?nukeonly=1 option to /buildtest R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5450091
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/5451092
-
- 04 Dec, 2011 1 commit
-
-
David Symonds authored
Fixes #2522. R=golang-dev, bradfitz, alex.brainman CC=golang-dev https://golang.org/cl/5449084
-
- 02 Dec, 2011 15 commits
-
-
Russ Cox authored
R=ken2, ken CC=golang-dev https://golang.org/cl/5449072
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5434111
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5450071
-
Russ Cox authored
R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/5451079
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/5448086
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5450067
-
Russ Cox authored
R=golang-dev, gri, r, r CC=golang-dev https://golang.org/cl/5449067
-
Robert Griesemer authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5449068
-
Russ Cox authored
This has always been true, but we lost it from the spec somewhere along the way, probably when we disallowed the general 'pointer to anything sliceable' slice case. R=gri CC=golang-dev https://golang.org/cl/5437121
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/5440083
-
Russ Cox authored
The special case in the spec is that you can take the address of a composite literal using the & operator. A composite literal is not, however, generally addressable, and the slice operator requires an addressable argument, so [3]int{1,2,3}[:] is invalid. This tutorial code and one bug report are the only places in the tree where it appears. R=r, gri CC=golang-dev https://golang.org/cl/5437120
-
Russ Cox authored
R=gri CC=golang-dev https://golang.org/cl/5451078
-
Gustav Paul authored
The SSH spec allows for the server to send a banner message to the client at any point during the authentication process. Currently the ssh client auth types all assume that the first response from the server after issuing a userAuthRequestMsg will be one of a couple of possible authentication success/failure messages. This means that client authentication breaks if the ssh server being connected to has a banner message configured. This changeset refactors the noneAuth, passwordAuth and publickeyAuth types' auth() function and allows for msgUserAuthBanner during authentication. R=golang-dev, rsc, dave, agl CC=golang-dev https://golang.org/cl/5432065
-
Robert Hencke authored
R=golang-dev CC=golang-dev https://golang.org/cl/5449063
-
Mikio Hara authored
For now a pair of socket options SOL_SOCKET and SO_BINDTODEVICE is supported on Linux only. I'd like to demote BindToDevice API to syscall level because it's Linux dependent one. In the near future, probably we may have a bit more portable API that using IPROTO_IP/IPV6 level socket options to specify, identify an inbound, outbound IP interface on incoming, outgoing UDP and raw IP packets. R=cw, golang-dev CC=golang-dev https://golang.org/cl/5447071
-