Andrew Gerrand
c118623ff7
[x/tour] go-tour: add Type Inference and Zero Values slides
...
Also check off a couple of finished things from the TODO list.
LGTM=campoy
R=campoy, golang-codereviews
CC=golang-codereviews
https://golang.org/cl/116090043
X-Tour-Commit: f82b5da64d2d1a0de764ca341592c8ecf83079f1
2014-07-30 10:48:37 +10:00
Andrew Gerrand
437760d1cb
[x/tour] go-tour: use ctrl-enter to fmt, not shift-space
...
Apparently I type shift-space a lot when I type,
so this new shortcut key gets in my way.
I suppose I'm not the only one.
LGTM=campoy
R=campoy, golang-codereviews
CC=golang-codereviews
https://golang.org/cl/117250045
X-Tour-Commit: 4ac7d6dc660c77a1dbf3c6b9ba4abf6cf86c99e5
2014-07-30 08:02:34 +10:00
Andrew Gerrand
5966974339
[x/blog] go.blog: tidy up sidebar
...
The sidebar in individual article view is unwieldy.
Remove related articles, Google Developers links (that nobody clicks),
and remove the heading about the "Article index" link.
LGTM=dsymonds
R=dsymonds
CC=golang-codereviews
https://golang.org/cl/120870044
X-Blog-Commit: a96a0492de8318de52f2e59f5185f2fe5f2f0ace
2014-07-29 18:02:50 +10:00
Andrew Gerrand
2e030de40b
[x/blog] go.blog: fix date on Context article
...
LGTM=sameer
R=sameer, r
CC=golang-codereviews
https://golang.org/cl/121800043
X-Blog-Commit: b3b6e6c7b303c2a3c0de82a27ce26c6dcf87fcf0
2014-07-29 12:06:41 +10:00
Sameer Ajmani
6b58242e15
[x/blog] go.blog/context: an article about go.net/context.Context.
...
Blog demo (internal):
http://olivia.nyc.corp.google.com:8081/context
Server demo (internal):
http://olivia.nyc.corp.google.com:8080/search?q=golang&timeout=1s
LGTM=bcmills, adg, r
R=r, rsc, adg, bcmills, ken, adonovan, dsymonds, crawshaw, campoy, hakim, dneil
https://golang.org/cl/116820044
X-Blog-Commit: cb9c80758ce4ef49c450ec2e289d200422c30018
2014-07-28 21:01:30 -04:00
Francesc Campoy
9013131ea1
[x/tour] go-tour: remove brace matching addon and unused trailing space addon.
...
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/114480043
X-Tour-Commit: 8a8092656ca27bc6ac0b78d5ab33ad4756da8b99
2014-07-28 16:51:09 -07:00
Andrew Gerrand
faf3f0374d
[x/tour] go-tour: fix typo in welcome article
...
Fixes #178 .
LGTM=josharian
R=golang-codereviews, josharian
CC=golang-codereviews
https://golang.org/cl/118310043
X-Tour-Commit: 384e52b316532494873b85cc8459a41b7d3aa7e8
2014-07-25 13:49:16 +10:00
Andrew Gerrand
f634502baa
[x/blog] go.blog: drop scheme from links
...
golang.org and its subdomains now serve HTTPS with a valid cert,
so we must support both HTTP and HTTPS.
TBR=bradfitz
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/116270043
X-Blog-Commit: 5f4149a2f88286f58e7e043291075422c9686f6d
2014-07-25 11:12:51 +10:00
Andrew Gerrand
c014c2ba34
[x/tour] go-tour: move code snippets to article-specific directories
...
As the prog/tour directory grows it becomes more difficult to see
what belongs where. Also the prog/tour directory hierarchy is one
level too deep.
Here's the code used to make this change:
for article in *.article; do
base=$(echo $article | sed 's/.article//')
mkdir $base
gofiles=$(grep '^.play' $article | awk '{print $2}' | sed 's_prog/tour/__' | sort -u)
for f in $gofiles; do
hg mv prog/tour/$f $base/$f
done
sed -i '' 's_prog/tour_'$base'_' $article
done
# catch dreg masked by "#appengine: " comment directive
hg mv prog/tour/sandbox.go welcome/
LGTM=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/111250043
X-Tour-Commit: c93c30eeb745101dcd374e53035f4af0f76795d7
2014-07-23 13:47:53 +10:00
Francesc Campoy
9bef43c800
[x/tour] go-tour: add defer slides
...
LGTM=adg
R=adg, campoy
CC=golang-codereviews
https://golang.org/cl/110520043
X-Tour-Commit: d87862c74eb2b20e2e739edde3be4d22592eb076
2014-07-23 13:42:34 +10:00
Andrew Gerrand
9c442ee1b7
[x/tour] go-tour: remove cube roots exercise
...
Complex numbers aren't covered by the tour (yet) and this has always
been a pretty esoteric exercise. I'd like to replace it with something
more practical.
TBR=campoy
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/111480043
X-Tour-Commit: 6b141de57fe9efdff4d4d3bb509d1b378deeddb6
2014-07-22 17:30:48 +10:00
Andrew Gerrand
ffabe2e624
[x/tour] go-tour: add log.Fatal to HTTP handlers exercise
...
This helps people diagnose the ListenAndServe error.
TBR=campoy
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/115170043
X-Tour-Commit: 549df6ba8b8d93996ff9e2f12989045acc7f61dd
2014-07-22 17:30:16 +10:00
Andrew Gerrand
d5feda6d06
[x/tour] go-tour: fix bad printf call
...
Fixes #177 .
TBR=campoy
R=golang-codereviews, dave
CC=golang-codereviews
https://golang.org/cl/116080044
X-Tour-Commit: 0520586d63c6266717ed256f6a8a654b57d11edf
2014-07-22 17:29:46 +10:00
Francesc Campoy
43217dae5d
[x/blog] go.blog: add last minute talk by Josh to OSCON blog post
...
LGTM=josharian, adg
R=adg, josharian
CC=golang-codereviews
https://golang.org/cl/117020043
X-Blog-Commit: 4c744a193fda7fb9959dc70f40d83f2fbc8aed00
2014-07-21 16:35:48 -07:00
Andrew Gerrand
3174674cd4
[x/tour] go-tour: tweaks to basics section
...
LGTM=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/114920043
X-Tour-Commit: da682125a04a9210bfed7ed55b4e3c2964431bd0
2014-07-18 10:14:12 +10:00
Andrew Gerrand
19e0494cea
[x/tour] go-tour: apply 05ecf5d65670 and 75dda8d5bf79 to default branch
...
Those changes were mistakenly applied to release-branch.go1.3.
TBR=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/113240043
X-Tour-Commit: 7f9714c71830965377d6088d20c1698dab1874d6
2014-07-17 13:27:17 +10:00
Francesc Campoy
71a2822874
[x/blog] go.blog: fixed date on oscon
...
LGTM=iant
R=r, iant
CC=golang-codereviews
https://golang.org/cl/115850043
X-Blog-Commit: 8d121bda542f9f7b099fea965a5c2227a199f849
2014-07-16 09:08:05 -07:00
Francesc Campoy
3bacac2881
[x/blog] go.blog: add missing word in title of OSCON post
...
LGTM=adg
R=r, adg
CC=golang-codereviews
https://golang.org/cl/112320047
X-Blog-Commit: 04617be74593609cb4e727f7267b03ec923592fd
2014-07-15 19:56:15 -07:00
Francesc Campoy
9774b3a1af
[x/blog] go.blog: Wo will be at OSCON 2014
...
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/116830043
X-Blog-Commit: 44cda08b6e4d3e98ca123c037ac175310ebbc462
2014-07-15 19:37:56 -07:00
Francesc Campoy
ff64fb7911
[x/tour] go-tour: add a slide on append
...
LGTM=adg
R=adg, campoy
CC=golang-codereviews
https://golang.org/cl/114760044
X-Tour-Commit: 57a43f2872dd20cd60eb4636881a0da5ec0fd625
2014-07-14 20:42:45 -07:00
Francesc Campoy
df3c09d45e
[x/tour] go-tour: fixing jshint warnings for a healthier codebase
...
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/112160043
X-Tour-Commit: 706ccdd2478b6ac0e27d12c5a3924e469c626aed
2014-07-14 11:48:56 -07:00
Andrew Gerrand
c88ae6aecc
[x/blog] blog: Go 1.3 release announcement
...
TBR=r
R=r, ruiu
CC=golang-codereviews
https://golang.org/cl/105320044
X-Blog-Commit: bcb02e5bf78420e57632acd8bd4b4966a501ea0b
2014-06-19 11:09:34 +10:00
Andrew Gerrand
0bac605d2d
[x/tour] go-tour: add solution for HTTP exercise
...
Fixes #176 .
LGTM=minux.ma
R=golang-codereviews, minux.ma, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/96650043
X-Tour-Commit: 50db16b274e4bca6a56a29b08b9eea96893c0502
2014-05-30 13:53:11 +10:00
Andrew Gerrand
448a9a1ef9
[x/blog] go.blog: fix typo in gophercon article
...
LGTM=mikioh.mikioh
R=golang-codereviews, mikioh.mikioh
CC=golang-codereviews
https://golang.org/cl/102840044
X-Blog-Commit: d0c87367a86f75ca1717e27967e1328357309207
2014-05-29 14:06:07 +10:00
Andrew Gerrand
044a8ac139
[x/blog] go.blog: minor tweaks to the gophercon article
...
LGTM=nj
R=golang-codereviews, nj
CC=golang-codereviews
https://golang.org/cl/102850043
X-Blog-Commit: bf344ba25395026557e51dc74b4140e229847319
2014-05-29 13:57:08 +10:00
Andrew Gerrand
8d0eb42f3e
[x/blog] go.blog: add "GopherCon 2014 Wrap Up"
...
LGTM=r, dave
R=r, dave
CC=golang-codereviews
https://golang.org/cl/92630044
X-Blog-Commit: d8d22251f7929b68d80ac27d9a75a4d801462c2f
2014-05-29 08:40:29 +10:00
Francesc Campoy
789e63a4b1
[x/tour] go-tour: Make syntax toggle work.
...
fixes #175
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/92520045
X-Tour-Commit: 1b94433b999def029ad84d6c3b2439042d3b95d1
2014-05-20 21:11:13 -07:00
Brad Fitzpatrick
17a43f838a
[x/blog] go.blog: remove accidental squatter link, now casino games
...
Whoops.
LGTM=r
R=golang-codereviews, r
CC=adg, golang-codereviews
https://golang.org/cl/95520046
X-Blog-Commit: 5a7c8d12e12df485073d574d1af4638d430f0cb6
2014-05-19 12:33:03 -07:00
ChaiShushan
a844702a3f
[x/tour] go-tour: add missing delete/error/rune predeclared identifier for Syntax-Highlighting
...
LGTM=adg
R=golang-codereviews, bradfitz, adg
CC=golang-codereviews
https://golang.org/cl/99040045
X-Tour-Commit: 768e12fbe3f242754403a1fe72b6463e2584f5e4
2014-05-14 13:32:11 +10:00
Rob Pike
7808a4dde9
[x/blog] go.blog: use the right declaration for Go's main function
...
OMG department.
Thanks to an anonymous correspondent for pointing it out.
Why did no one notice this?
The original translation here is lexically similar but very wrong.
I had C on the brain when I wrote it. That doesn't happen so much
any more.
LGTM=robert.hencke
R=golang-codereviews, robert.hencke
CC=golang-codereviews
https://golang.org/cl/99160043
X-Blog-Commit: f7678ed021a53d57b2d5e160e3dfb0d76ea23892
2014-05-11 06:59:47 -04:00
Andrew Gerrand
800b42f54c
[x/tour] go-tour: add link to Traditonal Chinese translation
...
LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/100100043
X-Tour-Commit: 2830e1ccae1925c2f1109778652735d420ddc300
2014-05-05 16:20:20 -07:00
Andrew Gerrand
d05f7742b7
[x/tour] go-tour: use new socket interface
...
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/100090043
X-Tour-Commit: c4f59b9e860bd24bef959381ef0aedbdfe390d2e
2014-05-05 08:43:04 -07:00
Robert Daniel Kortschak
5b364e7683
[x/tour] go-tour: fix typos
...
LGTM=robert.hencke, adg
R=golang-codereviews, robert.hencke, gobot, adg
CC=golang-codereviews
https://golang.org/cl/98920043
X-Tour-Commit: 66c0d07cca14a8e248c2826b5ca2711dc029e547
2014-05-04 21:04:17 -04:00
Andrew Gerrand
0db5fe5e98
[x/tour] go-tour: update translation instructions
...
LGTM=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/92990043
X-Tour-Commit: 8c9fbb6c4b3f70011fd8749a841c4ea72c249421
2014-05-02 14:31:48 -04:00
Andrew Gerrand
be24e35160
[x/blog] go.blog: fix build; add "// +build OMIT" to many samples
...
We use OMIT instead of ignore so such lines will be omitted
from present output.
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/87890045
X-Blog-Commit: fba6ccb2a3a677663296815fab3c235dc8d0a54b
2014-04-15 11:43:38 +10:00
Andrew Gerrand
5f07fcd89a
[x/blog] go.blog: use !info.Mode().IsRegular() instead of info.Isdir()
...
That way we'll only try to hash regular files.
Fixes golang/go#7770 .
LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/87860043
X-Blog-Commit: 26209f9d1cbd0faeef306f1da2c43184d489a9a8
2014-04-15 09:48:42 +10:00
Andrew Gerrand
b17cdda995
[x/tour] go-tour: remove protocol from webfont script tag
...
Fixes font loading on HTTPS sites.
TBR=dsymonds
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/82920043
X-Tour-Commit: e898661ffe1aad59ba429bc563fe28a1485f3815
2014-04-01 10:56:06 +11:00
Andrew Gerrand
f127054117
[x/tour] go-tour: send file name on Run
...
TBR=dsymonds
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/81570046
X-Tour-Commit: f5563a68fc248129e2b6a28a24418ecf2d60daeb
2014-04-01 10:54:33 +11:00
Andrew Gerrand
9642abcbe2
[x/tour] go-tour: fix static content serving
...
LGTM=hyangah
R=golang-codereviews, hyangah
CC=golang-codereviews
https://golang.org/cl/82430043
X-Tour-Commit: ff5890aa7b1d0500976544cce82ad6c2ec5df63c
2014-03-31 13:32:37 +11:00
Andrew Gerrand
a87cccb530
[x/tour] go-tour: fix a couple of bad format strings
...
LGTM=dsymonds
R=dsymonds
CC=golang-codereviews
https://golang.org/cl/80980044
X-Tour-Commit: 8eccd4e7389ea8d6ce74854db17c08c1d9fd223c
2014-03-27 11:50:38 +11:00
Andrew Gerrand
7063086e09
[x/tour] go-tour: update loops solution with shorter version
...
Fixes #171 .
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/79240043
X-Tour-Commit: ad3f35b4b07d2f1aed9d1e95e288d57e6002b047
2014-03-26 16:03:20 +11:00
Rob Pike
a4c3675dbc
[x/blog] go.blog: remove acute accent from Renee's name in post
...
By request.
TBR=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/79260045
X-Blog-Commit: d6e30255673913da92fb4ea68e95ce61938c55eb
2014-03-25 10:04:41 +11:00
Andrew Gerrand
1d2a822239
[x/blog] go.blog: add "The Go gopher" article
...
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/79270043
X-Blog-Commit: 3c9e99d94ae226f9fbcb3e4e9de7a46af33150f2
2014-03-25 06:38:05 +11:00
Andrew Gerrand
b77a3d18a5
[x/blog] go.blog: fix links in page footer
...
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/78490043
X-Blog-Commit: ebd4e7843f398e29ebbc49be17d43b1513bd321e
2014-03-21 09:42:40 +11:00
Andrew Gerrand
597d1966ea
[x/tour] go-tour: remove redundant talks directive from app.yaml
...
LGTM=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/77950043
X-Tour-Commit: f6f66f2b5a36c6fddcba0fb0dce7ff4d020f3c86
2014-03-20 09:47:08 +11:00
Sameer Ajmani
a8cb187259
[x/blog] go.blog: update pipelines blog post to clarify a point of confusion.
...
LGTM=bcmills
R=david.crawshaw, rsc, bcmills
CC=adg, golang-codereviews, r
https://golang.org/cl/76910043
X-Blog-Commit: 204a024dae66d50108de3b22f9762b4b89541a6a
2014-03-17 12:45:17 -04:00
Andrew Gerrand
81055402d9
[x/blog] go.blog: fix typos in pipelines article
...
LGTM=nigeltao
R=snanda, nigeltao
CC=golang-codereviews
https://golang.org/cl/75640044
X-Blog-Commit: 6cc8e4665caa0eb4f420209eb430f85f0b114680
2014-03-14 13:33:29 +11:00
Sameer Ajmani
8c2718fdab
[x/blog] add missing "of"
...
LGTM=rsc
R=rsc, adg
CC=golang-codereviews
https://golang.org/cl/75450043
X-Blog-Commit: 50f8651743a96af446eb1a21b9816a3bdeaf1a92
2014-03-13 11:57:42 -04:00
Sameer Ajmani
503fcd61b7
[x/blog] go.blog: pipelines and cancellation.
...
R=adg, r, rsc, ken, bcmills
CC=adonovan, campoy, david.crawshaw, gmlewis, golang-codereviews
https://golang.org/cl/71070047
X-Blog-Commit: 9aa2e1143c55cfa6a0b8651067b34c61da8d5646
2014-03-12 23:43:55 -04:00
Francesc Campoy
edb4185366
[x/tour] go-tour: removing unused javascript files from codemirror lib
...
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/69790046
X-Tour-Commit: 11228f5cdce0c7a538cc33728a3c25e822649090
2014-03-06 15:36:57 -08:00