aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-02-08weekly.2012-02-07weekly.2012-02-07Andrew Gerrand
R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/5615056
2012-02-08archive/zip: tweak API and docs.Andrew Gerrand
Fixes #2835. R=golang-dev, n13m3y3r, r, bradfitz CC=golang-dev https://golang.org/cl/5645051
2012-02-08encoding/csv: document ReadAll behavior at EOFRob Pike
Fixes #2847. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5641050
2012-02-07net/http: don't ignore some errors in testsBrad Fitzpatrick
to help debug Issue 2651 R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5644049
2012-02-08encoding/binary: hide TotalSizeRob Pike
The function has a bizarre signature: it was the only public function there that exposed the reflect package. Also, its definition is peculiar and hard to explain. It doesn't merit being exported. This is an API change but really, it should never have been exported and it's certain very few programs will depend on it: it's too weird. Fixes #2846. R=golang-dev, gri, bradfitz CC=golang-dev https://golang.org/cl/5639054
2012-02-07cmd/api: compare multiple contextsBrad Fitzpatrick
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5626045
2012-02-08bufio: drop error return for NewReaderSize and NewWriterSizeRob Pike
It complicates the interface unnecessarily. Document this in go1.html. Also update the go/doc Makefile. Fixes #2836. R=golang-dev, gri, bradfitz CC=golang-dev https://golang.org/cl/5642054
2012-02-07net/http/httputil: preserve query params in reverse proxyBrad Fitzpatrick
Fixes #2853 R=golang-dev, r CC=golang-dev https://golang.org/cl/5642056
2012-02-08encoding/hex: canonicalize error type namesRob Pike
Also simplify the tests. Fixes #2849. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/5643045
2012-02-08image: delete the image.Repeated type.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/5636045
2012-02-08io/ioutil: document EOF behavior in ReadFile and ReadAllRob Pike
Fixes #2862. R=golang-dev, n13m3y3r, iant CC=golang-dev https://golang.org/cl/5646048
2012-02-08bug408: deleteRob Pike
It's disabled and unreproducible. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5642053
2012-02-07go/printer, gofmt: don't print incorrect programsRobert Griesemer
Be careful when printing line comments with incorrect position information. Maintain additional state impliedSemi: when set, a comment containing a newline would imply a semicolon and thus placement must be delayed. Precompute state information pertaining to the next comment for faster checks (the printer is marginally faster now despite additional checks for each comment). No effect on existing src, misc sources. Fixes #1505. R=rsc CC=golang-dev https://golang.org/cl/5598054
2012-02-075l, 6l, 8l: implement -X flagRuss Cox
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5643050
2012-02-07test: disable bug408Russ Cox
Fixes #2902. TBR=golang-dev CC=golang-dev https://golang.org/cl/5641047
2012-02-07flag: describe valid input for Duration flags.David Symonds
R=golang-dev, r CC=golang-dev https://golang.org/cl/5639046
2012-02-07encoding/gob: document CommonTypeRob Pike
Also bring the names in doc.go in line with the source. More radical resolutions are possible but require substantial internal changes for very little benefit. Fixing it this way lets us keep the embedding, which has a huge simplifying effect, and guarantees binary compatibility. Fixes #2848. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5644045
2012-02-07encoding/xml: fix documentation for Decoder.SkipRob Pike
Fixes #2850. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5645043
2012-02-07bufio: remove special error type, update docsRob Pike
Updates #2836. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5639045
2012-02-07misc/osx: update for dist tool, drop image.bash, update readmeAndrew Gerrand
R=golang-dev, r CC=golang-dev https://golang.org/cl/5639043
2012-02-07cmd/dist: prevent race on VERSION creationGustavo Niemeyer
Commands such as "dist version > VERSION" will cause the shell to create an empty VERSION file and set dist's stdout to its fd. dist in turn looks at VERSION and uses its content if available, which is empty at this point. Fix that by ignoring VERSION if it's empty. Also prevent cmdversion from running findgoversion a second time. It was already loaded by init. R=adg, gustavo, rsc CC=golang-dev https://golang.org/cl/5639044
2012-02-06fix build: wrong godoc code submitted beforeRobert Griesemer
R=r CC=golang-dev https://golang.org/cl/5644044
2012-02-06go/token: remove dependency on encoding/gobRobert Griesemer
R=dsymonds CC=golang-dev https://golang.org/cl/5636053
2012-02-07net: run TestDialTimeout on windowsAlex Brainman
R=golang-dev, rsc CC=bradfitz, golang-dev, mikioh.mikioh https://golang.org/cl/5616066
2012-02-07path/filepath: repair and simplify the symlink testRob Pike
I hate symlinks. Fixes #2787. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5638043
2012-02-07misc/osx: don't set GOROOT or modify profile filesAndrew Gerrand
There's no reason to set GOROOT as the tools will have the path baked into it with GOROOT_FINAL. R=bradfitz, bytbox, gustavo, rsc CC=golang-dev https://golang.org/cl/5576064
2012-02-06syscall: add Timeval.Nano, Timespec.Nano, for conversion to DurationRuss Cox
Fixes #2534. R=golang-dev, dsymonds, bradfitz CC=golang-dev https://golang.org/cl/5635051
2012-02-07go_spec: primality is elusiveRob Pike
This time for sure. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5634046
2012-02-06cgo: print line numbers in fatal errors when relevant.Rémy Oudompheng
Signatures of fatalf and error_ helpers have been matched for consistency. Fixes #1800. R=rsc CC=golang-dev, remy https://golang.org/cl/5593049
2012-02-06build: add make.bash --dist-toolRuss Cox
R=golang-dev, n13m3y3r CC=golang-dev https://golang.org/cl/5634048
2012-02-06doc: remove overuse of simplyRuss Cox
Specifically, remove simply where it is claiming that the code or the action to be carried out is simple, since the reader might disagree. R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/5637048
2012-02-06build: delete make paraphernaliaRuss Cox
As a convenience to people working on the tools, leave Makefiles that invoke the go dist tool appropriately. They are not used during the build. R=golang-dev, bradfitz, n13m3y3r, gustavo CC=golang-dev https://golang.org/cl/5636050
2012-02-06cmd/dist: ignore file names beginning with . or _Russ Cox
This is the same heuristic that build.ScanDir uses. It avoids considering 'resource fork' files on OS X; the resource for x.go is ._x.go. R=gri CC=golang-dev https://golang.org/cl/5616073
2012-02-06runtime: delete UpdateMemStats, replace with ReadMemStats(&stats).Rémy Oudompheng
Unexports runtime.MemStats and rename MemStatsType to MemStats. The new accessor requires passing a pointer to a user-allocated MemStats structure. Fixes #2572. R=bradfitz, rsc, bradfitz, gustavo CC=golang-dev, remy https://golang.org/cl/5616072
2012-02-06database/sql: permit scanning into interface{}Brad Fitzpatrick
See thread http://goo.gl/7zzzU for background. R=rsc CC=golang-dev https://golang.org/cl/5624051
2012-02-068a, 8l: implement support for RDTSC instruction.Shenghou Ma
Also modify runtime/asm_386.s to use it. R=rsc CC=golang-dev https://golang.org/cl/5634043
2012-02-06build: remove unnecessary pragmasAnthony Martin
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5629055
2012-02-06cmd/go: fixed panic on `go clean -n` and `go clean -x`.Sanjay Menakuru
also made generated scripts act more like running go clean itself R=golang-dev CC=golang-dev, rsc https://golang.org/cl/5624049
2012-02-06cmd/gc: disallow switch _ := v.(type)Russ Cox
Fixes #2827. R=ken2 CC=golang-dev https://golang.org/cl/5638045
2012-02-06misc/goplay: use go tool "run"Olivier Duperray
Fixes #2872 R=andybalholm, rsc CC=golang-dev https://golang.org/cl/5608056
2012-02-06cmd/go: pass env CGO_CFLAGS to cgoJeff Hodges
Passing the CGO_CFLAGS to cgo is required to make alternative include directories work when building a cgo project. R=rsc CC=golang-dev https://golang.org/cl/5635048
2012-02-06runtime: fix float64 hash on 32-bit machineRuss Cox
Multiplying by the low 32 bits was a bad idea no matter what, but it was a particularly unfortunate choice because those bits are 0 for small integer values. Fixes #2883. R=ken2 CC=golang-dev https://golang.org/cl/5634047
2012-02-06runtime: use GOTRACEBACK to decide whether to show runtime framesRuss Cox
Right now, GOTRACEBACK=0 means do not show any stack traces. Unset means the default behavior (declutter by hiding runtime routines). This CL makes GOTRACEBACK=2 mean include the runtime routines. It avoids having to recompile the runtime when you want to see the runtime in the tracebacks. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5633050
2012-02-06cmd/gc: another special (%hhS) case for method names.Luuk van Dijk
Fixes #2877 R=rsc CC=golang-dev https://golang.org/cl/5637047
2012-02-06cmd/gc: fix codegen reordering for expressions involving && and ||Luuk van Dijk
Fixes #2821. R=rsc CC=golang-dev https://golang.org/cl/5606061
2012-02-06archive/zip: support full range of FileMode flagsGustavo Niemeyer
Zip files may actually store symlinks, and that's represented as a file with unix flag S_IFLNK and with its data containing the symlink target name. The other flags are being supported too. Now that the os package has the full range of flags in a system agnostic manner, there's no reason to discard that information. R=golang-dev, adg, rogpeppe CC=golang-dev https://golang.org/cl/5624048
2012-02-06gc: don't print implicit type on struct literal in exportLuuk van Dijk
As pointed out in the discussion around 2678. R=rsc CC=golang-dev https://golang.org/cl/5534077
2012-02-06net/http: Don't set Content-Type header for HEAD requests by defaultPatrick Mylund Nielsen
since the real type is not inferred. Fixes #2885. R=golang-dev, dsymonds, bradfitz CC=golang-dev https://golang.org/cl/5633045
2012-02-06A+C: Patrick Mylund Nielsen (individual CLA)David Symonds
R=golang-dev TBR=adg CC=golang-dev, patrick https://golang.org/cl/5616070
2012-02-06bytes: API tweaksRob Pike
- fix documentation for NewBuffer and NewBufferString - document and implement behavior of Truncate on invalid lengths Fixes #2837. R=rsc, adg CC=golang-dev https://golang.org/cl/5637044