Rob Pike
7b8f8bf5b5
doc/reference-cmd: use vet as example, not fmt
...
"go tool fmt" doesn't work, "go tool vet" does.
R=golang-dev, rogpeppe, r, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5900049
2012-03-25 11:35:16 +11:00
Rob Pike
4074795e15
effective_go: cleanups and fixes
...
Also explain the situation with recursive String methods more accurately,
and clean up the code now that the fmt package is more careful.
R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/5907047
2012-03-25 11:34:51 +11:00
Rob Pike
73b5eb38c1
docs/articles/wiki: minor fixes
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5900046
2012-03-24 10:14:25 +11:00
Rob Pike
c5f695e863
doc/go1: add mention of packaged releases
...
Fixes #3245 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5905045
2012-03-24 10:14:07 +11:00
Rob Pike
b73046407f
doc/reference-cmd.html: new introduction
...
Compare and explain go, go cmd, and go tool cmd.
The situation is not concisely explained elsewhere in the main docs.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5906043
2012-03-24 09:29:08 +11:00
Stefan Nilsson
2dfcbd0a3b
os: add missing byte to FileMode buffer
...
32 bytes is enough for all FileMode bits.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5853044
2012-03-24 08:16:57 +11:00
Rob Pike
ae8d8abfeb
codewalk/sharemem.xml: fix references to files
...
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5877064
2012-03-24 08:12:52 +11:00
Robert Griesemer
43ad726f34
text/template: fix typo in package comment
...
Fixes #3383 .
R=iant, bradfitz
CC=golang-dev
https://golang.org/cl/5891045
2012-03-23 11:31:29 -07:00
Shenghou Ma
54a2e63a60
doc/reference-cmd: doc/fmt can be invoked by cmd/go but also available as independent command
...
R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/5877050
2012-03-23 23:21:52 +08:00
Adam Langley
1d8ec87135
crypto/tls: don't select ECC ciphersuites with no mutual curve.
...
The existing code that tried to prevent ECC ciphersuites from being
selected when there were no mutual curves still left |suite| set.
This lead to a panic on a nil pointer when there were no acceptable
ciphersuites at all.
Thanks to George Kadianakis for pointing it out.
R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5857043
2012-03-23 10:48:51 -04:00
Rob Pike
76cf6bac07
doc/articles/defer_panic_recover.html: minor tweaks
...
Delete () from function names and change the reference to some
functions to the correct term, methods.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5874063
2012-03-23 17:40:27 +11:00
Rob Pike
fc9f65a6a0
doc/articles/image_draw.html: fix circle example
...
It was showing the same snippet twice instead of the type definition and snippet.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5875045
2012-03-23 17:02:21 +11:00
Alex Brainman
f39ff80bea
path/filepath: windows drive letter cannot be a digit
...
R=golang-dev, r
CC=golang-dev, mattn.jp
https://golang.org/cl/5885056
2012-03-23 15:57:19 +11:00
Andrew Gerrand
d420be5b1c
tag weekly.2012-03-22
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5877063
2012-03-23 12:45:58 +11:00
Andrew Gerrand
da7959d5dd
misc/dist: make godoc shortcut work
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5877062
2012-03-23 12:44:33 +11:00
Yasuhiro Matsumoto
782feeb765
doc/godoc.js: fix error on IE8.
...
* implement simple getElementsByClassName for IE8.
* remove some lint warnings.
Fixes #3318 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5881054
2012-03-23 12:23:53 +11:00
Andrew Gerrand
145c48c1d1
weekly.2012-03-22
...
R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/5876068
2012-03-23 11:56:54 +11:00
Andrew Gerrand
e9fef33dd8
misc/dist: updates to installer script
...
Now sets GOROOT.
Fixes #3287 .
Fixes #3361 .
R=golang-dev
CC=golang-dev
https://golang.org/cl/5877059
2012-03-23 11:48:54 +11:00
Ian Lance Taylor
5ac186975c
doc/articles/c_go_cgo.html: correct "C" comment to mention #cgo
...
Also fix invalid apostrophe characters.
R=r, gri, adg
CC=golang-dev
https://golang.org/cl/5874058
2012-03-22 17:44:28 -07:00
Rob Pike
a99e9c5db5
doc/articles: rename concurrency patterns article
...
The old name, automatically generated, was ludicrously verbose.
Also clean up an example to use time.Second.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5876051
2012-03-23 07:51:16 +11:00
Ian Lance Taylor
d12f1ff7ad
test: fix run.bash by spelling out the commands to use for bug424.go
...
R=golang-dev, gri, iant
CC=golang-dev
https://golang.org/cl/5882046
2012-03-22 12:48:41 -07:00
Ian Lance Taylor
209b2e55f7
cmd/gc: fix comment typo, assignment spacing
...
R=bradfitz, gri, lvd
CC=golang-dev
https://golang.org/cl/5874053
2012-03-22 11:40:12 -07:00
Ian Lance Taylor
47b6197a01
cmd/gc: when expanding append inline, preserve arguments
...
Fixes #3369 .
R=golang-dev, gri, lvd, r
CC=golang-dev
https://golang.org/cl/5876044
2012-03-22 09:44:31 -07:00
Stefan Nilsson
08959defa8
sort: add time complexity to doc
...
Let's tell the world that Go's sort is O(n log n).
Surely this is a feature we intend to keep.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5867045
2012-03-22 09:27:02 -07:00
Rob Pike
2795a15c0c
doc/articles/gobs_of_data.html: delete extra word
...
Putt putt putt our way towards felicity.
R=golang-dev, bsiegert
CC=golang-dev
https://golang.org/cl/5874048
2012-03-22 19:20:03 +11:00
Francisco Souza
289a357104
doc: add JSON and Go article
...
Originally published on The Go Programming Language Blog, January 25, 2011.
http://blog.golang.org/2011/01/json-and-go.html
R=adg
CC=golang-dev
https://golang.org/cl/5846044
2012-03-22 18:25:40 +11:00
Rob Pike
cec67568e9
doc/articles/go_command.html: nits
...
Fix some English mistakes and minor inaccuracies.
R=golang-dev, jsing
CC=golang-dev
https://golang.org/cl/5885046
2012-03-22 17:59:06 +11:00
Rob Pike
07e887f433
flag: add examples
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5867049
2012-03-22 11:15:43 +11:00
Francisco Souza
2b3d6cb5e6
doc: fix typo in The Laws of Reflection article
...
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/5876047
2012-03-21 16:42:04 -07:00
Robert Griesemer
f5f80368c4
exp/norm/normalize.go: fix typo
...
R=golang-dev, r, dsymonds
CC=golang-dev
https://golang.org/cl/5874045
2012-03-21 14:55:05 -07:00
Robert Griesemer
b8b308d184
doc/effective_go.html: undo local font change
...
R=r
CC=golang-dev
https://golang.org/cl/5876043
2012-03-21 14:29:16 -07:00
Shenghou Ma
7186e56573
go/build: clarify why we exclude files starting with '_' or '.'
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5864053
2012-03-22 03:18:47 +08:00
Robert Griesemer
cfd8b84f07
godoc: use shorter titles for tabs
...
In a browser with many open tabs, the tab titles become short
and uninformative because they all start with the same prefix
("Package ", "Directory ", etc.).
Permit use of shorter tab titles that start with the relevant
information first.
Fixes #3365 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5865056
2012-03-21 11:29:30 -07:00
Shenghou Ma
e2662835b8
test: use testlib in a few more cases
...
Introduce a new skip cmd.
R=golang-dev, bradfitz, iant, iant
CC=golang-dev
https://golang.org/cl/5868048
2012-03-22 02:14:44 +08:00
Ian Lance Taylor
3a3c5aad4e
cmd/cgo: fix handling of errno for gccgo
...
Fixes #3332 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5868047
2012-03-21 10:38:58 -07:00
Shenghou Ma
0532f4d382
doc/effective_go: minor corrections
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5848063
2012-03-21 09:33:55 -07:00
Shenghou Ma
2ceb653b8b
build: lengthen timeout for the lengthy runtime test
...
To fix build on (overheated) Linux/ARM builder.
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/5865051
2012-03-21 16:19:37 +08:00
Brad Fitzpatrick
e5102b35f6
doc: remove reference to deleted os.ENOSPC
...
R=golang-dev, gri, r, r
CC=golang-dev
https://golang.org/cl/5866046
2012-03-20 16:50:51 -07:00
David Symonds
4a59be0091
html/template: fix typo and make grammar consistent in comments.
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5866044
2012-03-21 10:10:44 +11:00
Stefan Nilsson
c5488d4f00
sort: fix computation of maxDepth to avoid infinite loop
...
The current computation loops indefinitely if n > 1<<30 (for 32-bit ints).
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5848067
2012-03-20 14:23:12 -07:00
Ian Lance Taylor
c5b45aa991
cmd/go: use .o, not .{5,6,8}, for gccgo created object files
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5861044
2012-03-20 14:17:06 -07:00
Ian Lance Taylor
a84e3baf9a
doc: general update of gccgo_install
...
Fixes #3325 .
R=golang-dev, bradfitz, minux.ma, r
CC=golang-dev
https://golang.org/cl/5858043
2012-03-20 14:16:34 -07:00
Brad Fitzpatrick
65dc7dc90b
sort: document two undocumented functions
...
They looked out of place in godoc.
Includes documenting sort stability.
Fixes #3356
R=golang-dev, gri, trolleriprofessorn
CC=golang-dev
https://golang.org/cl/5855044
2012-03-20 11:40:41 -07:00
Shenghou Ma
1abd8d8fd0
misc/cgo/gmp: update for Go 1
...
1. make the program go buildable
2. update os.EINVAL and runtime.Cgocalls()
3. wrap mpz_div_2exp() and mpz_mul_2exp to support both
pre-5.0 and post-5.0 gmp (we really have no reason to
restrict ourselves to gmp 5.0+)
R=golang-dev, remyoudompheng, iant
CC=golang-dev
https://golang.org/cl/5847061
2012-03-21 00:51:48 +08:00
Shenghou Ma
4b1933dfb2
runtime: remove unused goc2c.c
...
Its functionality has been moved into cmd/dist.
R=golang-dev, r, iant
CC=golang-dev
https://golang.org/cl/5843062
2012-03-21 00:49:45 +08:00
Shenghou Ma
23322ab841
build: unset GOPATH before tests
...
This is because we disallow local import for non-local packages, if
GOROOT happens to be under one of GOPATH, then some tests will fail
to build.
Fixes #3337 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5852043
2012-03-21 00:47:27 +08:00
Shenghou Ma
9dbfda5857
doc/debugging_with_gdb: format & content update
...
R=adg, lvd
CC=golang-dev
https://golang.org/cl/5845065
2012-03-21 00:42:53 +08:00
Alex Brainman
8521811cde
run.bat: disable test in test\bench\go1 to fix build
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5848066
2012-03-20 14:59:51 +11:00
Rob Pike
351213ce92
api: update go1.txt after adding functions to html/template
...
Fixes build, teaches lesson.
R=golang-dev, r
TBR=bradfitz
CC=golang-dev
https://golang.org/cl/5853051
2012-03-20 14:53:18 +11:00
Rob Pike
49be7f7d0d
html/template: add Templates and *Escape functions
...
to bring it in line with text/template's interface.
Fixes #3296 .
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5843066
2012-03-20 14:38:07 +11:00