Andrew Gerrand
5d9765785d
[release-branch.r59] gc: fix closure bug
...
««« CL 4709042 / d30305e2898a
gc: fix closure bug
Fixes #2056 .
R=rsc
CC=golang-dev
https://golang.org/cl/4709042
»»»
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4814061
2011-07-31 15:37:01 -07:00
Andrew Gerrand
6b0d25d8ee
[release-branch.r59] doc: document release.r59
...
««« CL 4835044 / d655c911a608
doc: document release.r59
R=golang-dev, dsymonds, r, r
CC=golang-dev
https://golang.org/cl/4835044
»»»
R=r
CC=golang-dev
https://golang.org/cl/4801068
2011-07-31 15:34:20 -07:00
Andrew Gerrand
9c3eb13a14
create release-branch.r59
2011-07-31 14:38:41 -07:00
Andrew Gerrand
4f03ef7993
weekly.2011-07-07
...
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/4668061
2011-07-08 13:13:38 +10:00
Andrew Gerrand
5bcbcab311
sort: rename helpers: s/Sort// in sort.Sort[Float64s|Ints|Strings]
...
Includes 'sorthelpers' gofix and updates to tree.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4631098
2011-07-08 10:52:50 +10:00
David Symonds
e67a2504a1
gob: export fields in structs in the package documentation.
...
R=r
CC=golang-dev
https://golang.org/cl/4648075
2011-07-08 10:51:56 +10:00
Brad Fitzpatrick
3236097ab0
cgi: don't depend on CGI.pm for tests
...
CGI.pm used to be part of the Perl core,
but some distros now bundle perl-core
and perl-modules separately.
It's not worth depending on.
R=golang-dev, mattn.jp
CC=golang-dev
https://golang.org/cl/4675063
2011-07-07 17:45:28 -07:00
Nigel Tao
b39afde805
image/draw: add draw tests where the destination image doesn't start
...
at (0, 0).
Also refactor the test to use the SubImage method rather than monkeying
with an image's Pix and Rect fields.
R=r
CC=golang-dev
https://golang.org/cl/4678045
2011-07-08 09:54:21 +10:00
Adam Langley
d1d466f620
crypto/x509: prevent chain cycles in Verify
...
It's possible to include a self-signed root certificate as an
intermediate and push Verify into a loop.
I already had a test for this so I thought that it was ok, but it
turns out that the test was void because the Verisign root certificate
doesn't contain the "IsCA" flag and so it wasn't an acceptable
intermediate certificate for that reason.
R=bradfitz
CC=golang-dev
https://golang.org/cl/4657080
2011-07-07 18:06:50 -04:00
Brad Fitzpatrick
141f676bab
doc: remove ed from apt-get package list
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4672052
2011-07-07 13:45:13 -07:00
Nigel Tao
03f987c8ea
image: tighten Paletted.Opaque to check only those palette entries
...
in the image, not all palette entries.
R=r
CC=golang-dev
https://golang.org/cl/4672049
2011-07-07 16:32:19 +10:00
Rob Pike
07c9a92564
os: fix documentation for FileInfo.Name.
...
It's the base name, not the full name.
Fixes #2047 .
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4680041
2011-07-07 16:05:38 +10:00
Rob Pike
238274ede0
exp/template: handle pointers and values in empty interfaces.
...
R=golang-dev, r, mattn.jp
CC=golang-dev
https://golang.org/cl/4664064
2011-07-07 14:51:35 +10:00
Rob Pike
8d538c6d3d
exp/template: change the name from 'metacharacter' to 'delimiter',
...
because that's what they are.
No semantic change.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4675060
2011-07-07 10:56:33 +10:00
Gideon Jan-Wessel Redelinghuys
582d6e5848
crypto/openpgp: fixed dangerous use of for loop variable
...
In function readSignedMessage a pointer to for loop variable 'key' was incorrectly being assigned
to md.SignedBy. Changed so that md.SignedBy is pointing to the 'more correct' memory position.
R=golang-dev, r, agl
CC=golang-dev
https://golang.org/cl/4631088
2011-07-07 10:49:03 +10:00
Rob Pike
7875ecb462
C+A: Gideon Jan-Wessel Redelinghuys
...
R=golang-dev, dsymonds
CC=gjredelinghuys, golang-dev
https://golang.org/cl/4675059
2011-07-07 10:46:54 +10:00
Alex Brainman
e71fc0c1fe
syscall: rearrange windows code so 386 and amd64 can share files
...
R=golang-dev, r
CC=golang-dev, vcc.163
https://golang.org/cl/4641093
2011-07-07 10:40:45 +10:00
Rob Pike
ae19943e2b
CONTRIBUTORS: add Google contributor mpvl@golang.org
...
R=golang-dev, dsymonds
CC=golang-dev, mpvl
https://golang.org/cl/4643075
2011-07-07 10:35:37 +10:00
Rob Pike
46ecd6f141
exp/template: index: forgot the always last-to-arrive uintptr.
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4636087
2011-07-07 07:00:48 +10:00
Adam Langley
1aa571d38b
asn1: support T61 and UTF8 string.
...
There is no end to the kitchen sink of string types in ASN.1.
Fixes #1953 .
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4672045
2011-07-06 16:25:44 -04:00
Adam Langley
502589e030
crypto/tls: fix generate_cert.go
...
Fixes #2030 .
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4635092
2011-07-06 16:22:21 -04:00
Ian Lance Taylor
7b0bb48056
json: fix test if rand returns 0.
...
Fixes test when run with gccgo using optimization, which
changes the order of the calls to rand.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4639101
2011-07-06 13:00:54 -07:00
Rob Pike
6732bd3526
exp/template: index function for arrays, slices, and maps.
...
R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/4643072
2011-07-06 22:27:06 +10:00
Rob Pike
64228e36a4
exp/template: silence test noise (but add a flag to put it back)
...
Also delete a TODO and clean up a little evaluation code.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4643071
2011-07-06 17:46:36 +10:00
David Symonds
33705ddea1
exp/template: add a JavaScript escaper.
...
R=r
CC=golang-dev
https://golang.org/cl/4671048
2011-07-06 16:51:49 +10:00
Rob Pike
a33cc423b4
exp/template: allow an empty interface value to be the target of range, etc.
...
We extract the concrete value inside.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4677041
2011-07-06 16:40:46 +10:00
Rob Pike
381a555f40
exp/template: improve error message for non-exported field.
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4636086
2011-07-06 15:56:39 +10:00
Rob Pike
a8e5db9449
maketables: update debugging data.
...
This is unused in the generation of the tables, but was incorrect if we ever needed it.
Also update the reference to the document.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4626097
2011-07-06 15:35:23 +10:00
David Symonds
9d5ed1744a
exp/template: add missing dotNode case.
...
R=r
CC=golang-dev
https://golang.org/cl/4672044
2011-07-06 15:14:10 +10:00
Rob Pike
9495dd31d2
exp/template: fixes and updates.
...
- fix line numbers - forgot to update state.line during execution
- add a comment convention {{/* comment */}}
- set.Template returns the named template in the set
- set.Execute executes the named template in the set
- use a local methodByName so this package can be used with earlier release of reflect.
- use initial cap to detect exported names
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4668054
2011-07-06 14:46:41 +10:00
David Symonds
d45ba2c146
exp/template: remove debugging dreg.
...
R=r, gri
TBR=r
CC=golang-dev
https://golang.org/cl/4671047
2011-07-06 14:18:46 +10:00
Yasuhiro Matsumoto
1e6d946594
html: parse start tags that aren't explicitly otherwise dealt with.
...
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/4626080
2011-07-06 13:08:52 +10:00
Rob Pike
329990d525
exp/template: remove the need for a goroutine.
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4626095
2011-07-06 11:02:53 +10:00
Rob Pike
4657d7d7db
exp/template: remove the visibility of the token channel from the parser.
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4675053
2011-07-06 10:13:53 +10:00
Luuk van Dijk
13d048a221
gc: fix %N for OGOTO nodes.
...
6g -W crashed on any source with a goto. this fixes that.
R=rsc, r
CC=golang-dev
https://golang.org/cl/4675052
2011-07-06 00:02:03 +02:00
Rob Pike
eea5443572
exp/template: add templates to sets; boolean logic.
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4670045
2011-07-05 17:05:15 +10:00
Andrew Gerrand
b7db4fef22
godoc: ignore directories that begin with '.'
...
Fixes #2017 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4675047
2011-07-05 17:00:18 +10:00
Rob Pike
5b1658232e
exp/template: statically check that functions names have been defined.
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4675046
2011-07-05 16:02:34 +10:00
Fazlul Shahriar
bedee318d5
os: fix build for Plan 9
...
R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/4657074
2011-07-05 16:01:29 +10:00
Rob Pike
cc9fed7c1a
exp/template: add an html escaping function.
...
R=golang-dev, dsymonds, adg
CC=golang-dev
https://golang.org/cl/4626092
2011-07-05 15:58:54 +10:00
Nigel Tao
104f57ad39
image: add a test for filling sub-images.
...
R=r
CC=golang-dev
https://golang.org/cl/4626091
2011-07-05 14:42:31 +10:00
Rob Pike
b177c97803
exp/template: functions
...
Add the ability to attach functions to template and template sets.
Make variadic functions and methods work.
Still to come: static checking of function names during parse.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4643068
2011-07-05 14:23:51 +10:00
Rob Pike
9cf37c3723
docs: fold the prog.sh scripting from makehtml into htmlgen itself.
...
This allows us to drop some crufty scripting and provides a firmer
footing for building better tools for preparing documents with source
code inside.
Also eliminate line numbers from the examples and text.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4650069
2011-07-04 16:15:14 +10:00
Andrew Gerrand
a342006207
goinstall: only report successfully-installed packages to the dashboard
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4657071
2011-07-04 16:05:11 +10:00
Rob Pike
13f889778e
exp/template: add template sets, allowing templates to reference one another
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4673042
2011-07-04 15:15:47 +10:00
Rob Pike
72efdea20e
exp/template: allow complex numbers, add 'with', 'define', and 'template' keywords.
...
Also simplify the handling of keywords.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4639096
2011-07-04 11:50:35 +10:00
Rob Pike
db0e358022
reflect: allow Len on String values.
...
It's probably just an oversight that it doesn't work,
perhaps caused by analogy with Cap.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4634125
2011-07-04 11:45:31 +10:00
Andrew Gerrand
8c7a73bbbb
go/build: evaluate symlinks before comparing path to GOPATH
...
R=golang-dev, r, dsymonds
CC=golang-dev
https://golang.org/cl/4645078
2011-07-04 10:26:03 +10:00
Andrew Gerrand
3cd8f27d79
godoc: search GOPATH for documentation
...
R=rsc, mattn.jp
CC=golang-dev
https://golang.org/cl/4627065
2011-07-02 14:07:06 +10:00
Andrew Gerrand
72a73198df
goinstall: documentation for new remote repository behavior and tweaks
...
R=rsc, julian
CC=golang-dev
https://golang.org/cl/4642049
2011-07-02 14:05:43 +10:00