Andrew Gerrand
2f4e5f79a6
gobuilder: send commit time in RFC3339 format
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5701063
2012-02-28 11:21:56 +11:00
Brad Fitzpatrick
fa33fdbc7d
encoding/binary: better example
...
leave that joke to Java.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5695080
2012-02-28 10:15:23 +11:00
Andrew Gerrand
ce51e10749
archive/zip: use encoding/binary again, add readBuf helper
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5699097
2012-02-28 09:41:30 +11:00
Stefan Nilsson
4fae9f7943
doc/go1: fix broken link
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5695072
2012-02-28 09:22:55 +11:00
Anthony Martin
eafe86c2df
go/printer: fix printing of variadic function calls
...
Fixes #3130 .
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5697062
2012-02-27 13:56:43 -08:00
Rob Pike
5573fa3bc5
cmd/go: mention examples in docs for -test.run
...
Missed in my last round. These things sure appear
in a lot of places.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5699096
2012-02-28 08:55:25 +11:00
Rob Pike
ec15046a8d
cmd/go: drop -example, apply -run to examples
...
Once more, with feeling.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5698080
2012-02-28 08:33:06 +11:00
Yissakhar Z. Beck
1f5fde0915
misc/bash: Completion for go tool.
...
This covers most of the tool's functionality. At some point,
support should probably be added for testflags and the various go
tools.
R=golang-dev, bradfitz, kyle, minux.ma
CC=golang-dev
https://golang.org/cl/5646066
2012-02-28 07:41:49 +11:00
Brad Fitzpatrick
9aff05e362
A+C: add Yissakhar Z. Beck (Individual CLA)
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5698079
2012-02-28 07:40:44 +11:00
Robert Griesemer
b495e5c538
strings: make Count example show results
...
Thanks to dr.volker.dobler for tracking this down.
Filed a long-term issue (3142) which may eventually
resolve this problem w/o the need for a manual fix.
R=iant
CC=golang-dev
https://golang.org/cl/5698078
2012-02-27 12:22:10 -08:00
Robert Griesemer
ab169c6e3f
godoc: don't show directories w/o packages in flat dir mode
...
The main change is simple: Both the Directory and DirEntry
struct have an extra field 'HasPkg' indicating whether the
directory contains any package files. The remaining changes
are more comments and adjustments to the template files.
Fixes #3121 .
R=golang-dev, bradfitz, sameer
CC=golang-dev
https://golang.org/cl/5699072
2012-02-27 11:18:00 -08:00
Anthony Martin
0706d00cb8
go/printer: fix test for new import path restrictions
...
Import paths with spaces are now invalid.
The builders would've caught this if they were running
the long tests. I've removed the check for short tests
in this package since the current tests are fast enough
already.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5694082
2012-02-27 10:01:45 -08:00
Shenghou Ma
56ae9032b2
cmd/go: test -i should not disable -c
...
Fixes #3104 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5699088
2012-02-27 12:33:14 -05:00
Andrew Gerrand
eb825b58cc
archive/zip: use smarter putUintXX functions to hide offsets
...
R=bradfitz, r, dsymonds, kyle
CC=golang-dev
https://golang.org/cl/5701055
2012-02-27 17:37:59 +11:00
Andrew Gerrand
228f44a1f5
archive/zip: stop using encoding/binary
...
R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5694085
2012-02-27 16:29:22 +11:00
Rob Pike
28668c3a28
cmd/go: run examples even if -run is set if -example is also set
...
Allows one to disable everything but the example being debugged.
This time for sure.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5700079
2012-02-27 16:23:22 +11:00
Andrew Gerrand
2d6a6ed9fc
misc/dashboard: fix bug in UI template
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5700078
2012-02-27 16:18:58 +11:00
Andrew Gerrand
8421390cb9
misc/dashboard: record install counts for external packages
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5699082
2012-02-27 15:25:41 +11:00
Rob Pike
cc7e11c91e
doc/go1: mention that regexp has changed
...
Also restore alphabetical order.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5701053
2012-02-27 14:34:16 +11:00
Andrew Gerrand
e10dc82ce0
doc: instruct freebsd/linux users to rm the old version first
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5701052
2012-02-27 14:16:56 +11:00
Rob Pike
5876b4eb28
testing: add -test.example flag to control execution of examples
...
Also, don't run examples if -test.run is set.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5697069
2012-02-27 12:49:10 +11:00
Alex Brainman
c7482b9196
os: implement sameFile on windows
...
Fixes #2511 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5687072
2012-02-27 12:29:33 +11:00
Mikkel Krautz
e4db4e9b58
crypto/x509: fix typo in Verify documentation
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5695070
2012-02-27 11:49:06 +11:00
Mike Rosset
4762e9d98c
html/template: use correct method signature, in introduction example.
...
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/5695067
2012-02-27 11:31:38 +11:00
Andrew Gerrand
cd1a2f7e74
doc: move wiki tutorial into articles directory, rmdir doc/codelab
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5701050
2012-02-27 11:25:43 +11:00
Rob Pike
b49dcb9d37
cmd/go: explain x... vs. x/... in help importpath
...
Fixes #3110 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5696083
2012-02-27 09:51:58 +11:00
Brad Fitzpatrick
761f946617
net/http/cgi: add an empty response test
...
New test for http://code.google.com/p/go/source/detail?r=a73ba18
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5701046
2012-02-26 14:46:22 -08:00
Rob Pike
68c7e8a2f4
doc/go1: add justification discussions to major changes
...
Fixes #3086 .
R=golang-dev, gri, r, kevlar
CC=golang-dev
https://golang.org/cl/5700067
2012-02-27 07:31:34 +11:00
Rob Pike
d781603931
time: add a comment about how to use the Duration constants
...
R=golang-dev, bradfitz, r, dsymonds
CC=golang-dev
https://golang.org/cl/5696078
2012-02-26 22:24:51 +11:00
Shenghou Ma
f7ad1834ea
doc/install: fix FreeBSD/Linux install command
...
R=adg, golang-dev, go.peter.90, rsc
CC=golang-dev
https://golang.org/cl/5700062
2012-02-26 01:40:29 +08:00
Shenghou Ma
bdca78e1a7
cmd/yacc/units.y: update comment, give better error messages when $GOROOT not set
...
R=r, golang-dev
CC=golang-dev
https://golang.org/cl/5698062
2012-02-26 01:36:26 +08:00
Mike Rosset
4af3dda41b
doc: update Go1 release notes to use correct WalkFunc error signature.
...
filepath's WalkFunc handler now uses errors package, and not
os.Error
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5696067
2012-02-24 22:17:21 -08:00
Robert Griesemer
5c7799f108
go: fix help text documenting example functions
...
R=adg, r
CC=golang-dev
https://golang.org/cl/5695062
2012-02-24 15:42:25 -08:00
Rob Pike
e303eeb75b
go/test/chan1.go: fix typo
...
Found by Lucio De Re
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5694071
2012-02-25 08:47:04 +11:00
Robert Griesemer
34e60a81d5
go/ast: examples for ast.Print, ast.Inspect
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5700057
2012-02-24 13:44:36 -08:00
Robert Griesemer
0a33b703e6
go/doc, godoc: fix range of type declarations
...
For grouped type declarations, go/doc introduces
fake individual declarations. Don't use the original
location of the "type" keyword because it will lead
to an overly large source code range for that fake
declaration, and thus an overly large selection shown
via godoc (e.g.: click on the AssignStmt link for:
http://golang.org/pkg/go/ast/#AssignStmt ).
Also: Don't create a fake declaration if not needed.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5694061
2012-02-24 13:44:22 -08:00
Rob Pike
b36d25f197
doc/go1: new introduction
...
This distills the motivational discussion and makes it the introduction to the release notes.
After this lands, I'll expand the discussion of the major changes to include more background.
Updates #3086 .
R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/5698057
2012-02-25 08:02:35 +11:00
Rob Pike
1086dd7cfb
cmd/go: in list, don't print blank lines for no output
...
Otherwise
go list -f "{{if .Stale}}{{.ImportPath}}{{end}}" all
and similar commands can print pages of empty lines.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5696058
2012-02-25 08:00:55 +11:00
Russ Cox
102274a30e
runtime: size arena to fit in virtual address space limit
...
For Brad.
Now FreeBSD/386 binaries run on nearlyfreespeech.net.
Fixes #2302 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5700060
2012-02-24 15:28:51 -05:00
Russ Cox
d8ccebfffa
net/http/cgi: fix empty response
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5693058
2012-02-24 15:10:46 -05:00
Anthony Martin
dc38756ce1
gc: reject import paths containing special characters
...
Also allow multiple invalid import statements in a
single file.
Fixes #3021 . The changes to go/parser and the
language specifcation have already been committed.
R=rsc, gri
CC=golang-dev
https://golang.org/cl/5672084
2012-02-24 14:48:36 -05:00
Gustavo Niemeyer
490c3d4a42
encoding/xml: fix anonymous field Unmarshal example
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5697043
2012-02-24 14:45:32 -05:00
Shenghou Ma
04f110e530
cmd/vet: don't give error for Printf("%+5.2e", x)
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5696048
2012-02-25 01:16:17 +08:00
Shenghou Ma
52cd4c8610
doc: update codelab/wiki to Go 1.
...
R=golang-dev, r, adg
CC=golang-dev
https://golang.org/cl/5683076
2012-02-25 01:09:05 +08:00
Sanjay Menakuru
27e07a2666
os: fix minor typo
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5697051
2012-02-24 22:42:16 +11:00
Rob Pike
832dcecc99
test/bench/shootout: update post-Makefile
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5696054
2012-02-24 16:59:09 +11:00
Rob Pike
3a1c226a38
reflect.DeepEqual: don't panic comparing functions
...
Functions are equal iff they are both nil.
Fixes #3122 .
R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5693057
2012-02-24 16:25:39 +11:00
Rob Pike
eb37b5b744
test: document ken/*.go
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5694065
2012-02-24 16:24:24 +11:00
Russ Cox
51a84bbfaa
runtime: fix arm
...
signal.test binary passes on my phone; should fix builder
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5694064
2012-02-23 23:10:38 -05:00
Russ Cox
075eef4018
gc: fix escape analysis + inlining + closure bug
...
R=ken2
CC=golang-dev, lvd
https://golang.org/cl/5693056
2012-02-23 23:09:53 -05:00