David Symonds
11cc5a26d5
reflect: panic if MakeSlice is given bad len/cap arguments.
...
Fixes #3330 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5847043
2012-03-16 17:28:16 +11:00
Christopher Redden
8009542f55
make.bat: Fix for old files
...
Same fix as applied here: https://golang.org/cl/5761044
Fixes #3222 .
R=golang-dev, alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/5838043
2012-03-16 14:30:43 +11:00
David Symonds
e5cc09a75d
doc: use time.Duration in Effective Go.
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5841044
2012-03-16 14:27:11 +11:00
Russ Cox
e57a6167b6
A+C: Christopher Redden (individual CLA)
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5845043
2012-03-15 23:15:38 -04:00
Russ Cox
2e4a035995
runtime: do not handle signals before configuring handler
...
There was a small window during program initialization
where a signal could come in before the handling mechanisms
were set up to handle it. Delay the signal-handler installation
until we're ready for the signals.
Fixes #3314 .
R=golang-dev, dsymonds, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5833049
2012-03-15 22:17:54 -04:00
Yasuhiro Matsumoto
7694da1f3b
cmd/gofmt: show ascii in usage.
...
windows cmd.exe can't show utf-8 correctly basically.
chcp 65001 may make it show, but most people don't have fonts which can
show it.
R=golang-dev, rsc, adg, gri, r
CC=golang-dev
https://golang.org/cl/5820060
2012-03-15 16:38:27 -07:00
Rémy Oudompheng
3211b2cca9
cmd/cgo: add support for function export for gccgo.
...
A "gccgoprefix" flag is added and used by the go tool,
to mirror the -fgo-prefix flag for gccgo, whose value
is required to know how to access functions from C.
Trying to export Go methods or unexported Go functions
will not work.
Also fix go test on "main" packages.
Updates #2313 .
Fixes #3262 .
R=mpimenov, rsc, iant
CC=golang-dev
https://golang.org/cl/5797046
2012-03-15 23:50:25 +01:00
Brad Fitzpatrick
86c7bc6e8b
misc/dist: don't ship cmd/cov or cmd/prof
...
Fixes #3317
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5784083
2012-03-15 15:22:56 -07:00
Brad Fitzpatrick
c898c519b0
cmd/go: quiet some logging
...
This should've been behind -v before but was missed.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5836046
2012-03-15 15:10:01 -07:00
Russ Cox
bd6404a4cc
runtime: fix arm build
...
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/5832047
2012-03-15 17:40:17 -04:00
Russ Cox
7a84fb3a85
cmd/go: make build errors more visible
...
Fixes #3324 .
Robert suggested not reporting errors until the end of the output.
which I'd also like to do, but errPrintedOutput makes that a bigger
change than I want to do before Go 1. This change should at least
remove the confusion we had.
# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sync
unicode/utf16
crypto/subtle
io
syscall
hash
crypto
crypto/md5
hash/crc32
crypto/cipher
crypto/hmac
crypto/sha1
go install unicode: copying /tmp/go-build816525784/unicode.a to /home/rsc/g/go/pkg/linux_amd64/unicode.a: short write
hash/adler32
container/list
container/ring
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5837054
2012-03-15 17:35:57 -04:00
Francisco Souza
9e03dcb3fa
doc: add Gobs of data article
...
Originally published on The Go Programming Language Blog, March 24, 2011.
http://blog.golang.org/2011/03/gobs-of-data.html
R=adg
CC=golang-dev
https://golang.org/cl/5834043
2012-03-16 08:21:13 +11:00
Andrew Gerrand
e9f82e6b68
misc/dashboard: remove old python package dashboard
...
This leaves only the project page, which now resides at the web root.
R=golang-dev, bsiegert, rsc
CC=golang-dev
https://golang.org/cl/5833044
2012-03-16 08:20:02 +11:00
Russ Cox
2ed7087c8d
reflect: document PkgPath, Method, StructField
...
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5824053
2012-03-15 17:15:57 -04:00
Russ Cox
9e5db8c90a
5l, 6l, 8l: fix stack split logic for stacks near default segment size
...
Fixes #3310 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5823051
2012-03-15 15:22:30 -04:00
Russ Cox
b7b3652414
os: do not assume syscall.Write will write everything
...
Fixes #3323 .
R=golang-dev, remyoudompheng, gri
CC=golang-dev
https://golang.org/cl/5837047
2012-03-15 15:10:19 -04:00
Russ Cox
20760e4335
go/build: do not report Target for local imports
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5820064
2012-03-15 15:08:57 -04:00
Russ Cox
b4e0aeac32
lib/godoc: removing leading / from search links
...
srcLink includes the / now; adding another yields //,
which means something else entirely in URLs.
Fixes #3327 .
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5823060
2012-03-15 14:50:51 -04:00
Stefan Nilsson
ed77d6f04d
doc: add missing quotation mark
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5833047
2012-03-15 14:06:15 -04:00
Brad Fitzpatrick
a4e6197b91
net/http: couple more triv.go modernizations
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5834049
2012-03-15 10:06:25 -07:00
Yasuhiro Matsumoto
aec01c3627
doc/play: use []rune insetead of []int.
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5823058
2012-03-15 19:28:07 +11:00
Andrew Gerrand
d528f52d87
cmd/godoc: add toys, tour button to playground
...
Fixes #3241 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5835043
2012-03-15 17:44:47 +11:00
Alex Brainman
4b872d61fe
os: return some invented data from Stat(DevNull) on windows
...
Fixes #3321 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5831043
2012-03-15 16:33:45 +11:00
Francisco Souza
235863cb12
doc: add "Godoc: documenting Go code" article
...
Originally published on The Go Programming Language Blog, March 31, 2011.
http://blog.golang.org/2011/03/godoc-documenting-go-code.html
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5830043
2012-03-15 14:51:44 +11:00
Robert Hencke
1c224ab9dd
net/http: ensure triv.go compiles and runs
...
R=golang-dev, bradfitz, dsymonds, dave, r
CC=golang-dev
https://golang.org/cl/5795069
2012-03-14 20:25:57 -07:00
Andrew Gerrand
181dc14cd6
cmd/godoc: use *goroot as base path in zip file
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5781069
2012-03-15 11:31:16 +11:00
Stefan Nilsson
f00872527b
doc: add reference to FAQ to explain warning about concrete type
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5820048
2012-03-15 09:15:16 +11:00
Brad Fitzpatrick
c959ebe4d8
archive/zip: move r.zip off disk, into reader_test.go
...
Makes certain virus scanners happier.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/5823053
2012-03-14 14:41:06 -07:00
Andrew Gerrand
9d08068d21
godoc: style example headings like links
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5819048
2012-03-15 08:09:54 +11:00
Robert Griesemer
036731c170
go/build: clearer argument name for Import (src -> srcDir)
...
R=rsc
CC=golang-dev
https://golang.org/cl/5820052
2012-03-14 13:19:14 -07:00
Russ Cox
95a8bab7b6
cmd/go: fix directory->import path conversion
...
Fixes #3306 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5821048
2012-03-14 15:12:57 -04:00
Russ Cox
70e58a2f9b
io/ioutil: fix crash when Stat fails
...
Fixes #3320 .
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5824051
2012-03-14 14:47:13 -04:00
Shenghou Ma
b2a9079e54
runtime: manage stack by ourselves for badcallback on windows/amd64
...
This function uses 48-byte of precious non-split stack for every callback
function, and without this CL, it can easily overflow the non-split stack.
I encountered this when trying to enable misc/cgo/test on windows/amd64.
R=rsc
CC=golang-dev
https://golang.org/cl/5784075
2012-03-15 02:24:49 +08:00
Volker Dobler
1ddc9feb53
cmd/go: trivial help message fix for go help get
...
Direct reference to go help build where the flags are described.
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/5825046
2012-03-14 12:49:57 -04:00
Shenghou Ma
24ed667b33
os: IsNotExist() should also consider ERROR_PATH_NOT_FOUND on Windows
...
Also update documentation about IsExist() and IsNotExist(), they are not
about files only.
R=rsc
CC=golang-dev
https://golang.org/cl/5794073
2012-03-14 23:54:40 +08:00
Brad Fitzpatrick
d6ea81e0b9
misc/dist: don't lose mode bits when setting tar permissions
...
R=golang-dev, bsiegert, rsc
CC=golang-dev
https://golang.org/cl/5822046
2012-03-14 08:24:11 -07:00
Andrew Gerrand
5c8e88d6d2
misc/dist: remove exp and old before building
...
Fixes #3317 .
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5784074
2012-03-14 23:47:34 +11:00
Yasuhiro Matsumoto
2fc5dd66df
misc/vim: restore fileencodings.
...
Currently, ftdetect/gofiletype.vim set fileencodings to open the file as
utf-8 encoding event if the file does not contain multibyte characters.
But fileencodings is global option.
$ vim foo.txt
:set fileencodings
utf-8,ucs-bom,cp932
$ vim foo.go
:set fileencodings
utf-8
This change restore fileencodings before opening the file.
Also added specify fileformats=unix.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5718045
2012-03-14 18:43:01 +11:00
Andrew Gerrand
b3ca3e9564
misc/dist: force modes to 0755 or 0644 in tarballs
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5823045
2012-03-14 17:09:15 +11:00
Rob Pike
214a1ca3c5
html/template: fix nil pointer bug
...
Fixes #3272 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5819046
2012-03-14 15:08:54 +11:00
Mikio Hara
9eeb90945e
runtime/cgo: linux signal masking
...
Fixes #3314 .
Fixes #3101 (again).
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5820047
2012-03-14 13:07:25 +09:00
Mikio Hara
1fc9a17c7e
runtime/cgo: darwin signal masking
...
Fixes #3101 (again).
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5825043
2012-03-14 12:49:59 +09:00
Andrew Gerrand
ace7d26499
cmd/godoc: s/ignore/appengine/ in appinit.go +build constraint
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5784072
2012-03-14 14:02:59 +11:00
Andrew Gerrand
adcb508359
godoc: fix vet warnings for untagged struct literals
...
src/cmd/godoc/filesystem.go:337:10: os.PathError struct literal uses untagged fields
src/cmd/godoc/filesystem.go:355:10: os.PathError struct literal uses untagged fields
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5820046
2012-03-14 13:19:39 +11:00
Francisco Souza
5659826e43
doc: add Go Concurrency Patterns: Timing out, moving on article
...
Originally published on The Go Programming Language Blog, September 23, 2010.
http://blog.golang.org/2010/09/go-concurrency-patterns-timing-out-and.html
Update #2547 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5815044
2012-03-14 13:03:11 +11:00
Robert Griesemer
d724631a53
all: various typos
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5820045
2012-03-13 17:29:07 -07:00
Johan Euphrosine
fef92cbbac
doc: add Go image/draw package article and convert code snippets to Go1.
...
Originally published on The Go Programming Language Blog, September 29, 2011.
http://blog.golang.org/2011/09/go-imagedraw-package.html
Update #2547 .
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/5755057
2012-03-14 11:27:41 +11:00
Brad Fitzpatrick
5f32c8b88b
html/template: fix panic on Clone
...
Fixes #3281
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5819044
2012-03-13 16:55:43 -07:00
Rob Pike
d6ad6f0e61
text/template: variables do not take arguments
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5821044
2012-03-14 10:46:21 +11:00
Robert Griesemer
b5021f3fe0
go/printer, gofmt: fix multi-line logic
...
A node spans multiple lines if the line difference
between start and end point is > 0 (rather than > 1).
Fixes some odd cases introduced by CL 5706055;
pointed out by dsymonds.
Added corresponding test case. The other change
in the .golden file reverts to the status before
the CL mentioned above and is correct.
gofmt -w src misc changes godoc.go back to where
it was before the CL mentioned above.
Fixes #3304 .
R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5820044
2012-03-13 16:15:58 -07:00