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
Shenghou Ma
62bb39e2ba
fmt: remove dead code
...
Also fix a typo in comment.
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5808043
2012-03-14 04:59:17 +08:00
Rob Pike
8170d81f4f
text/template: fix a couple of parse bugs around identifiers.
...
1) Poor error checking in variable declarations admitted
$x=2 or even $x%2.
2) Need white space or suitable termination character
after identifiers, so $x+2 doesn't parse, in case we want it
to mean something one day.
Number 2 in particular prevents mistakes that we will have
to honor later and so is necessary for Go 1.
Fixes #3270 .
Fixes #3271 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5795073
2012-03-14 07:03:11 +11:00
Maxim Pimenov
5361712ab4
go/build: fix match
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5801043
2012-03-13 10:00:43 -04:00
Russ Cox
cc99d8ad0b
gc: use quoted string format in import error
...
R=ken2
CC=golang-dev
https://golang.org/cl/5794077
2012-03-13 09:33:54 -04:00
Alex Brainman
f26b1f8056
make.bat: properly handle directories with spaces
...
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/5797079
2012-03-13 16:50:44 +11:00
Shenghou Ma
4ca59a010e
os: remove document duplication in error predicate functions
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5783092
2012-03-13 13:48:07 +08:00
Andrew Gerrand
e24d99d0e1
tag weekly.2012-03-13
...
R=dsymonds
CC=golang-dev
https://golang.org/cl/5795072
2012-03-13 16:45:08 +11:00
Andrew Gerrand
9ef03fdf77
weekly.2012-03-13
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5754097
2012-03-13 16:39:52 +11:00
Andrew Gerrand
f4bf4c3b2f
doc: update weekly notes, untag weekly
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5783093
2012-03-13 16:32:23 +11:00
Rob Pike
d0a4c9bb62
gc: allow ~ in import paths
...
Windows has paths like C:/Users/ADMIN~1. Also, it so happens
that go/parser allows ~ in import paths. So does the spec.
Fixes the build too.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5777073
2012-03-13 16:03:19 +11:00
Brad Fitzpatrick
c405b58f3f
misc/dist: better archive/tar Headers
...
This should live in archive/tar later (CL 5796073) but we
can always do that after Go 1 and stick it here for now.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5754096
2012-03-12 21:49:43 -07:00
Rob Pike
daacba5184
gc: include full text of import path in error message
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5783091
2012-03-13 15:35:08 +11:00
Andrew Gerrand
677caf7813
misc/dist: trim space from version string
...
This prevents us from writing filenames like "weekly.2012-03-12\n.foo.bar.tar.gz".
R=bradfitz
CC=golang-dev
https://golang.org/cl/5783090
2012-03-13 15:31:39 +11:00
Andrew Gerrand
51db4bb4ea
tag weekly.2012-03-12
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5796074
2012-03-13 15:12:05 +11:00
Andrew Gerrand
f0aeac1ac8
weekly.2012-03-12
...
R=golang-dev, nigeltao, bradfitz
CC=golang-dev
https://golang.org/cl/5783077
2012-03-13 15:09:51 +11:00
Andrew Gerrand
c9f1f56143
doc: increase h3 size
...
This makes h3 and h4 more distinct, and h2 and h3 the same size.
The h2 and h3 styles may be distinguished h2's background styles.
This means that almost all text on the site is either 16px, 20px,
or 24px. (with a smattering of 14px)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5754095
2012-03-13 15:02:36 +11:00
Andrew Gerrand
cf46040784
doc: windows zip archive installation instructions
...
Fixes #3254 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5794071
2012-03-13 15:02:14 +11:00
Francisco Souza
6033a48b77
doc: add Go's declaration syntax article
...
Originally published on The Go Programming Language Blog, July 7, 2010.
I did not put any go file in doc/progs. Shoul I include Go files
with those declarations?
http://blog.golang.org/2010/07/gos-declaration-syntax.html
Update #2547 .
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5795068
2012-03-13 14:46:08 +11:00
Robert Griesemer
82fc28c0f5
go spec: fix inaccuracy in type identity definition
...
Pointed out by Steven Blenkinsop (steven099@gmail.com )
via golang-nuts.
R=r, dsymonds
CC=golang-dev
https://golang.org/cl/5783087
2012-03-12 20:27:27 -07:00
Andrew Gerrand
881907730f
doc: update reference gopher
...
R=golang-dev
CC=golang-dev
https://golang.org/cl/5754094
2012-03-13 13:43:41 +11:00
Alex Brainman
16ade99d9d
runtime: fix windows/amd64 exception handler
...
R=golang-dev, rsc
CC=golang-dev, hectorchu
https://golang.org/cl/5797077
2012-03-12 22:42:55 -04:00
Robert Hencke
4809ad655b
cmd/go: fix typo
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5777072
2012-03-12 19:41:15 -07:00
Francisco Souza
170301d44b
godoc: added alt and title attributes to the "pop out" button
...
R=adg
CC=golang-dev
https://golang.org/cl/5777071
2012-03-13 12:57:48 +11:00
David Symonds
fa6d3ab6be
build: update comment about GO_LDFLAGS.
...
(5l/6l/8l aren't involved in building packages)
R=golang-dev, robert.hencke
CC=golang-dev
https://golang.org/cl/5798071
2012-03-13 12:52:15 +11:00
Alex Brainman
7c128493a4
test: actually run them on windows
...
R=golang-dev, r, rsc, bradfitz, minux.ma
CC=golang-dev
https://golang.org/cl/5756065
2012-03-13 12:51:28 +11:00
Shenghou Ma
0238cec021
os, syscall: windows really isn't posix compliant, fix os.IsExist()
...
R=golang-dev, rsc, bradfitz, alex.brainman
CC=golang-dev
https://golang.org/cl/5754083
2012-03-13 12:50:04 +11:00
Andrew Gerrand
d2d7de974c
doc/progs: skip cgo1 and cgo2 on freebsd
...
FreeBSD's srandom has a different signature to darwin/linux.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5795067
2012-03-13 11:55:16 +11:00
Andrew Gerrand
e8636a64a2
godoc: change link styles, add 'pop out' button
...
Remove underlines from all links, show underline on link hover.
Change all non-link headings to h4, a slight visual cue.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5783088
2012-03-13 11:00:11 +11:00
Andrew Gerrand
2b8bc93f32
godoc: use elastic layout for most pages
...
We use the absence of a Title to detect the front page.
I can't find other pages without titles, so this seems reasonable.
R=golang-dev, bradfitz, gri
CC=golang-dev
https://golang.org/cl/5797076
2012-03-13 10:17:10 +11:00