Russ Cox
fbff033ecf
A+C: add Christoph Hack (individual CLA)
...
R=golang-dev, dsymonds, gri
CC=golang-dev
https://golang.org/cl/5485048
2011-12-12 18:01:02 -05:00
Andrew Gerrand
c400a0b7db
doc: add Error Handling article
...
Originally published on The Go Programming Language Blog, July 12, 2011.
http://blog.golang.org/2011/07/error-handling-and-go.html
Update #2547
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5475060
2011-12-13 09:44:06 +11:00
Brad Fitzpatrick
06a9bc6835
sql: fix missing mutex unlock in an error case
...
Fixes #2542
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5483054
2011-12-12 13:56:56 -08:00
Gustavo Niemeyer
3dc278d3e2
reflect: fix Slice cap
...
R=golang-dev, dsymonds, r, rsc
CC=golang-dev
https://golang.org/cl/5483044
2011-12-12 19:45:40 -02:00
Sébastien Paolacci
e6f5a90b5f
runtime: madvise and SysUnused for Linux
...
SysUnused being a direct call to madvise MADV_DONTNEED.
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/5477057
2011-12-12 16:33:13 -05:00
Lucio De Re
0f4f3c6769
gc: avoid 0-length C array
...
R=golang-dev, ality
CC=golang-dev, rsc
https://golang.org/cl/5467066
2011-12-12 16:25:31 -05:00
Anthony Martin
2c2a582ae9
os: fix Plan 9 build for new FileInfo API
...
R=lucio.dere, rsc
CC=golang-dev
https://golang.org/cl/5440073
2011-12-12 16:14:00 -05:00
Anthony Martin
1cb254a085
time: fix Plan 9 build for new API
...
I had to move readFile into sys_$GOOS.go
since syscall.Open takes only two arguments
on Plan 9.
R=lucio.dere, rsc, alex.brainman
CC=golang-dev
https://golang.org/cl/5447061
2011-12-12 16:12:22 -05:00
Rémy Oudompheng
d7634ad7d9
gc: fix wrong arguments to error message for switches.
...
Fixes #2502 .
R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/5472062
2011-12-12 16:08:32 -05:00
Robert Hencke
d0cf3fa21e
time: gob marshaler for Time
...
Addresses issue 2526
R=rsc, r
CC=golang-dev
https://golang.org/cl/5448114
2011-12-12 16:08:29 -05:00
Charles L. Dorian
f5c211172b
math: fix special cases in Nextafter
...
Nextafter(0, -1) != -0.
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/5467060
2011-12-12 15:51:11 -05:00
Christopher Nielsen
420fe22921
ld/6l/8l: First pass at changes to the linker to support NetBSD binaries.
...
This will not currently create valid NetBSD binaries because NetBSD requires
an ELF note section to run, otherwise the kernel will throw ENOEXEC. I was
unable to determine an elegant way to add the section, so I am submitting
what I have.
References:
http://www.netbsd.org/docs/kernel/elf-notes.html
http://mail-index.netbsd.org/netbsd-bugs/2001/08/03/0012.html
R=rsc
CC=golang-dev
https://golang.org/cl/5472049
2011-12-12 15:42:11 -05:00
Christopher Nielsen
728c16cf13
build: Changes to the build infrastructure for NetBSD.
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5476048
2011-12-12 15:42:06 -05:00
Lucio De Re
d56ca13c03
gc: add varargck for %lN
...
R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/5476049
2011-12-12 15:42:02 -05:00
Russ Cox
ecda0fa5d4
gc: allow colon in //line file name
...
Assume last colon introduces line number.
Fixes #2543 .
R=ken2
CC=golang-dev
https://golang.org/cl/5485047
2011-12-12 15:41:54 -05:00
Rob Pike
ebdcbf1cdc
doc/go1: the simpler package changes
...
R=golang-dev, fullung, dsymonds, r, adg
CC=golang-dev
https://golang.org/cl/5477056
2011-12-12 12:26:56 -08:00
Roger Peppe
2cb1aa4681
archive/zip: make zip understand os.FileMode.
...
Fixes implicit dependency on underlying os file modes.
R=rsc, r, n13m3y3r, gustavo, adg
CC=golang-dev
https://golang.org/cl/5440130
2011-12-12 15:22:55 -05:00
Ian Lance Taylor
68ec347c16
net/http: make test remove temporary file and directory
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5486044
2011-12-12 10:40:15 -08:00
Taru Karttunen
a620f2b73a
crypto/aes: Made faster by eliminating some indirection
...
Made te and td arrays into variables te0-3 and td0-3,
which improves performance from 7000ns/op to 5800.
R=rsc, rogpeppe, agl
CC=golang-dev
https://golang.org/cl/5449077
2011-12-12 09:58:04 -05:00
Andrew Gerrand
4068e3fc70
doc: remove file.go from run (fix windows build)
...
R=golang-dev, r, alex.brainman, r
CC=golang-dev
https://golang.org/cl/5479069
2011-12-12 16:14:38 +11:00
Rob Pike
b78a7b7dab
doc/go_tutorial: make clear the file example is Unix-specific
...
Fixes #2553 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5472074
2011-12-11 21:03:49 -08:00
Andrew Balholm
0c5443a0a6
html: don't ignore whitespace in or after framesets
...
Pass tests6.dat, test 7:
<frameset></frameset>
foo
| <html>
| <head>
| <frameset>
| "
"
Also pass tests through test 12:
<form><form>
R=nigeltao
CC=golang-dev
https://golang.org/cl/5480061
2011-12-12 13:18:01 +11:00
Andrew Gerrand
49d82b4ca1
doc: add Defer, Panic, and Recover article
...
Originally published on The Go Programming Language Blog, August 4 2010.
http://blog.golang.org/2010/08/defer-panic-and-recover.html
Update #2547
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5479053
2011-12-12 13:15:29 +11:00
Rob Pike
e505c9ccac
net/http: further simplify example program
...
(should have caught this in review.)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5478066
2011-12-11 09:29:44 -08:00
Joel Sing
7e797be7a3
exp/norm: fix rune/int types in test
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5472067
2011-12-11 09:25:09 -08:00
Lucio De Re
90913cf170
Housekeeping: Cleaning up the clean-up process.
...
src/clean.bash:
Add clean-ups for previously overlooked directories.
doc/codelab/wiki/Makefile:
Dropped "index.html" from CLEANFILES so it will not be
deleted on cleaning.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5476050
2011-12-11 09:23:17 -08:00
Lucio De Re
e628144aeb
pkg/runtime/Makefile: sorted object module names.
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5479060
2011-12-11 09:21:53 -08:00
Olivier Duperray
3308891c9d
net/http: fix trivial example server
...
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5479061
2011-12-11 09:11:57 -08:00
Robert Hencke
d8d321068b
gotest: use build.ArchChar()
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5480060
2011-12-10 14:42:29 -08:00
Hector Chu
fdb09d289a
time: fix Time.Add
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/5448121
2011-12-10 21:55:38 +00:00
Robert Hencke
1084ab98b7
spec: adjust complex constant example
...
Fixes https://golang.org/cl/5444053/#msg41
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5478058
2011-12-10 10:04:33 -08:00
Robert Hencke
7ab25a441c
pkg: adjust "the a" in comments
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5476055
2011-12-10 13:02:23 +11:00
Rob Pike
0244bae672
expvar: fix typo in Publish documentation
...
Found and fixed by bketelsen@gmail.com .
Not worth making him a CONTRIBUTOR to delete one character.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5476054
2011-12-09 14:24:51 -08:00
Rob Pike
71ccf73a74
doc/go1: syscalls, strconv
...
R=rsc
CC=golang-dev
https://golang.org/cl/5472054
2011-12-09 14:12:51 -08:00
Russ Cox
1cb7f85d74
gc: 0 expected bugs
...
Now that Luuk's qualified exporting code
is in, fixing this bug is trivial.
R=ken2
CC=golang-dev
https://golang.org/cl/5479048
2011-12-09 14:58:28 -05:00
Rob Pike
5912869d61
html/template: make Must work
...
Fixes #2545 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5475054
2011-12-09 10:47:36 -08:00
Russ Cox
8c0b699ca4
gc: fix another blank bug
...
R=ken2
CC=golang-dev
https://golang.org/cl/5478051
2011-12-09 11:59:21 -05:00
Rob Pike
2e338fa69f
doc/go1: the rest of the language changes
...
R=rsc
CC=golang-dev
https://golang.org/cl/5478047
2011-12-09 08:31:57 -08:00
Rob Pike
940c25faa4
tmpltohtml: feature for easier snippet extraction
...
Lines that end with OMIT are omitted from the output.
A comment such as
// Example stops here. OMIT
can be used as a marker but not appear in the output.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5477050
2011-12-09 08:31:04 -08:00
Russ Cox
e77f057bf3
gc: resolve built-ins to built-in symbol
...
R=lvd
CC=golang-dev
https://golang.org/cl/5480049
2011-12-09 08:28:17 -05:00
Russ Cox
fc128403dc
gc: minor changes for inlining
...
Copied from 5400043 since they stand alone from inlining.
R=lvd
CC=golang-dev
https://golang.org/cl/5479046
2011-12-09 08:03:51 -05:00
Russ Cox
ef1c535727
spec: examples of untyped boolean, string constants
...
This is a spec correction, not a language change.
The implementations have behaved like this for years
(and there are tests to that effect), and elsewhere in
the spec true and false are defined to be untyped
boolean constants.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5477047
2011-12-09 00:13:19 -05:00
Russ Cox
6a47bb4974
spec: remove redundant, outdated definition of default literal types
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5480047
2011-12-09 00:12:49 -05:00
Russ Cox
012798a325
gc: rune is now an alias for int32
...
R=ken2
CC=golang-dev
https://golang.org/cl/5467049
2011-12-09 00:12:07 -05:00
Russ Cox
d7f050a73e
spec: rune is now an alias for int32
...
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5467048
2011-12-09 00:11:43 -05:00
Russ Cox
41453d2ed2
exp/types: fix linux build
...
I don't understand why it was only broken on Linux
TBR=gri
CC=golang-dev
https://golang.org/cl/5479045
2011-12-08 23:20:21 -05:00
Russ Cox
2ab9bb6aaf
gc: fix export of '\'' and '\\' constants
...
Fixes Windows build.
R=ken2
CC=golang-dev
https://golang.org/cl/5472046
2011-12-08 22:43:31 -05:00
Charles L. Dorian
9a358df947
spec: fix typo in example comment
...
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/5475046
2011-12-08 22:27:14 -05:00
Russ Cox
a250f37cbc
update tree for new default type rule
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5448091
2011-12-08 22:08:03 -05:00
Russ Cox
be0ffbfd02
gc: implement character constant type rules
...
R=ken2
CC=golang-dev
https://golang.org/cl/5444054
2011-12-08 22:07:43 -05:00