Shenghou Ma
f7ad1834ea
doc/install: fix FreeBSD/Linux install command
...
R=adg, golang-dev, go.peter.90, rsc
CC=golang-dev
https://golang.org/cl/5700062
2012-02-26 01:40:29 +08:00
Mike Rosset
4af3dda41b
doc: update Go1 release notes to use correct WalkFunc error signature.
...
filepath's WalkFunc handler now uses errors package, and not
os.Error
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5696067
2012-02-24 22:17:21 -08:00
Rob Pike
b36d25f197
doc/go1: new introduction
...
This distills the motivational discussion and makes it the introduction to the release notes.
After this lands, I'll expand the discussion of the major changes to include more background.
Updates #3086 .
R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/5698057
2012-02-25 08:02:35 +11:00
Shenghou Ma
52cd4c8610
doc: update codelab/wiki to Go 1.
...
R=golang-dev, r, adg
CC=golang-dev
https://golang.org/cl/5683076
2012-02-25 01:09:05 +08:00
Russ Cox
fad10f9c1c
spec: allow disallow of \uFFFD in import path
...
Turns out U+FFFD is a graphic character too.
http://play.golang.org/p/YblCfKAfko
R=gri
CC=golang-dev
https://golang.org/cl/5699052
2012-02-23 22:46:04 -05:00
Rob Pike
5cff029993
doc/go1: document ProcessState
...
Also reformat the "go fix" references to make them look better by using the non-CW space.
Fixes #3087 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5695057
2012-02-24 13:08:11 +11:00
Robert Griesemer
54eec3db2c
godoc: fine-tuning .css
...
R=adg
CC=golang-dev
https://golang.org/cl/5699057
2012-02-23 17:42:14 -08:00
Robert Griesemer
5b30306fa8
godoc: bring back highlighting, selections, and alerts
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/5695054
2012-02-23 14:54:10 -08:00
Robert Griesemer
ac4055b2c5
go spec: import path implementation restriction
...
R=rsc, r, r, adg
CC=golang-dev
https://golang.org/cl/5688074
2012-02-22 23:51:25 -08:00
Andrew Gerrand
6419bbbfd3
weekly.2012-02-22
...
R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5698043
2012-02-23 16:40:13 +11:00
Rob Pike
818e3cdb09
spec: refine the wording about variables in type switches
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5686064
2012-02-22 16:25:55 +11:00
David Symonds
6d35302704
cmd/fix: remove os.Wait gofix.
...
The os.Wait function has been removed entirely, so there's no point in fixing code that called it.
R=r
CC=golang-dev
https://golang.org/cl/5685078
2012-02-22 15:46:31 +11:00
Andrew Gerrand
8d29a09707
doc: move styles to style.css
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5685075
2012-02-22 15:02:31 +11:00
Russ Cox
9c08d65084
spec: make all comparison results untyped bool
...
Or, depending on your point of view, make the
comparisons satisfy any surrounding boolean type.
Also, fix a few foo_bar -> fooBar in code fragments.
Fixes #2561 .
R=golang-dev, r, bradfitz, gri, iant, kevlar
CC=golang-dev
https://golang.org/cl/5671096
2012-02-21 22:04:30 -05:00
Andrew Gerrand
43cfbb0fb5
godoc: adjust line height in pre blocks
...
R=gri, dsymonds
CC=golang-dev
https://golang.org/cl/5687071
2012-02-22 12:45:01 +11:00
Andrew Gerrand
9a26a7822e
godoc: fix playground url
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5685070
2012-02-22 10:09:34 +11:00
Andrew Gerrand
1a1940c870
doc: support redirect-on-share
...
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5689056
2012-02-22 09:16:54 +11:00
Andrew Gerrand
01156f05de
doc: fix links in installation instructions
...
Fixes #3051 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5683056
2012-02-21 14:12:07 +11:00
Andrew Gerrand
10689cddba
doc: link to self-hosted articles from docs.html
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5685061
2012-02-21 13:59:51 +11:00
Rob Pike
6ba77ecb6a
doc/go1: delete obsolete reference to FileStat
...
Fixes #3013 .
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5683049
2012-02-21 08:03:03 +11:00
Rob Pike
b5a3bd5ff6
os: drop the Wait function and the options to Process.Wait
...
They are portability problems and the options are almost always zero in practice anyway.
R=golang-dev, dsymonds, r, bradfitz
CC=golang-dev
https://golang.org/cl/5688046
2012-02-20 15:36:08 +11:00
Rob Pike
5cff1903ea
FAQ: many small fixes and adjustments
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5685048
2012-02-20 12:42:50 +11:00
Russ Cox
72f5a91aa3
doc/go1: update for runtime, unsafe API changes
...
Fixes #2890 .
R=golang-dev, r, remyoudompheng
CC=golang-dev
https://golang.org/cl/5683044
2012-02-19 18:04:38 -05:00
Bobby Powers
d5b28ad2b6
doc: update contrib.html
...
Fix all the local links, as contrib.html is served as
/project/
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5656105
2012-02-20 08:33:28 +11:00
Rob Pike
fa9c44d831
doc/install.html: fix link
...
Fixes #3072 .
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5684044
2012-02-20 08:08:30 +11:00
Russ Cox
1a0c8fe9bb
cmd/cgo: bug fixes
...
* disallow embedding of C type (Fixes issue 2552)
* detect 0-length array (Fixes issue 2806)
* use typedefs when possible, to avoid attribute((unavailable)) (Fixes issue 2888)
* print Go types constructed from C types using original C types (Fixes issue 2612)
This fix changes _cgo_export.h to repeat the preamble from import "C".
Otherwise the fix to issue 2612 is impossible, since it cannot refer to
types that have not been defined. If people are using //export and
putting non-header information in the preamble, they will need to
refactor their code.
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5672080
2012-02-19 13:32:55 -05:00
Marcel van Lohuizen
72fb81eeb6
doc: Fixed type in documentation for FormatFloat.
...
R=r, r, rsc
CC=golang-dev
https://golang.org/cl/5656108
2012-02-19 19:26:05 +01:00
Brad Fitzpatrick
efacb2a1b4
os: remove Getenverror
...
Fixes #3065
R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5675094
2012-02-18 21:18:13 -08:00
Rob Pike
c3ef198020
go 1: add a description of the os error changes.
...
I'm sure I wrote these before but they've disappeared.
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5673100
2012-02-19 14:15:26 +11:00
Ian Lance Taylor
253c139275
doc: update gccgo_contribute.html
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5673080
2012-02-18 11:15:52 -08:00
Shenghou Ma
f18b0b0c16
doc: various updates to doc/code.html
...
R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/5649068
2012-02-18 16:13:02 +11:00
Russ Cox
5c3de8ccb3
doc: fix tables
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5676084
2012-02-17 16:59:33 -05:00
Ian Lance Taylor
ebc4007708
doc: clarify gccgo support for segmented stacks
...
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5671081
2012-02-17 05:59:15 -08:00
Rob Pike
1e0f97ac65
faq: add entry about nil interfaces vs. nil pointers
...
Fixes #2778 .
R=bradfitz, rsc, iant, adg
CC=golang-dev
https://golang.org/cl/5672078
2012-02-17 16:27:17 +11:00
Mike Rosset
91672686da
doc: provide example filepath.Walk for go1
...
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5674067
2012-02-17 12:45:55 +11:00
Rob Pike
56069f0333
os: delete os.EINVAL and so on
...
The set of errors forwarded by the os package varied with system and
was therefore non-portable.
Three helpers added for portable error checking: IsExist, IsNotExist, and IsPermission.
One or two more may need to come, but let's keep the set very small to discourage
thinking about errors that way.
R=mikioh.mikioh, gustavo, r, rsc
CC=golang-dev
https://golang.org/cl/5672047
2012-02-17 10:04:29 +11:00
Robert Griesemer
3908467b1f
go spec: struct comparison only compares non-blank fields
...
Fixes #3031 .
R=golang-dev, rsc, r, iant
CC=golang-dev
https://golang.org/cl/5676054
2012-02-16 14:13:17 -08:00
David Symonds
8342793e7b
net/url: Rename ParseWithReference to ParseWithFragment.
...
Updates #2946 .
R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5671061
2012-02-16 15:56:03 +11:00
Nigel Tao
da8f037b57
fix: add fix for bufio, gzip, zlib NewWriterXxx changes.
...
Fixes #2979 .
R=rsc, r
CC=golang-dev
https://golang.org/cl/5664046
2012-02-15 14:41:47 +11:00
Andrew Gerrand
eccc22e542
doc: fix snapshot notes
...
R=bradfitz, dsymonds
CC=golang-dev
https://golang.org/cl/5675056
2012-02-15 14:20:21 +11:00
Andrew Gerrand
d2f65a6461
weekly.2012-02-14
...
R=golang-dev, dsymonds, r, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5675055
2012-02-15 14:15:33 +11:00
Lai Jiangshan
932cdfbc4c
doc: fix codewalk/markov.go
...
When I build it, I got:
/home/njubee/work/golang/doc/codewalk/markov.go:124: undefined: time.Nanoseconds
time.Nanoseconds() does not exist now, use time.Now().UnixNano() instead
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5668044
2012-02-15 13:07:34 +11:00
Andrew Gerrand
3509687d6a
doc: add playground.js
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5649087
2012-02-15 12:59:50 +11:00
Andrew Gerrand
dd91d83d24
doc: add App Engine docs to 'learn' and 'reference' pages
...
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5672048
2012-02-15 12:58:40 +11:00
Andrew Gerrand
a50315304d
doc: grey out line numbers
...
R=gri
CC=golang-dev
https://golang.org/cl/5675049
2012-02-15 10:31:28 +11:00
Adam Langley
c2e58dc568
go1.tmpl: fix merge
...
hg massively messed up a simple merge for 9d7addec2635 in what I can
only imagine was a public service announcement that everyone should
use git.
R=golang-dev
CC=golang-dev
https://golang.org/cl/5668043
2012-02-14 07:13:57 -05:00
Andrew Gerrand
e07f089cb0
doc: update install.html for binary distros, add install-source.html
...
R=bsiegert, rsc, r
CC=golang-dev
https://golang.org/cl/5605047
2012-02-14 17:02:28 +11:00
Andrew Gerrand
5ab935f68a
godoc: list examples in index
...
Fixes #2897 .
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5658047
2012-02-14 14:52:00 +11:00
Andrew Gerrand
763716ae2a
doc: color comments
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5657047
2012-02-14 11:45:27 +11:00
Andrew Gerrand
04868b28ac
archive/zip: hide Write method from *Writer type
...
This was an implementation detail that snuck into the public interface.
*Writer.Create gives you an io.Writer, the *Writer itself was never
meant to be written to.
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/5654076
2012-02-14 10:47:48 +11:00