Граф коммитов

423 Коммитов

Автор SHA1 Сообщение Дата
Shenghou Ma 25dc92c16d [x/tour] go-tour: update link to Simplified Chinese translation
The version on App Engine can't be accessed by most Chinese, so
we host a local version.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/199970043
X-Tour-Commit: af217d183a219a12f88d3769f9b0229295e28ffd
2015-01-25 02:39:36 -05:00
Francesc Campoy ca8db88948 [x/tour] go-tour: improve existing solution for binarytrees.go and add non leaky solution
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/196890043
X-Tour-Commit: 0edad63fb85850f8a9024e9ca20a02e5215d12b1
2015-01-20 11:45:08 -08:00
Francesc Campoy e5d83bfb9b [x/tour] go-tour: add solution to the stringers exercise
Fixes #187

LGTM=minux
R=adg, minux
CC=golang-codereviews
https://golang.org/cl/191520043
X-Tour-Commit: dc8e90225f967f0e10426d7a6779c815f39482c9
2015-01-06 18:43:48 -08:00
Francesc Campoy 1eb942f68c [x/tour] go-tour: handle disabled cookies graciously
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/189200043
X-Tour-Commit: aadca779b3f1b855d030491938d2decbb8a72507
2014-12-19 12:35:59 -08:00
Francesc Campoy 2c98c35c4b [x/tour] go-tour: The TOC click-catcher shouldn't cover the TOC scrollbar.
Fixes 183

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/182510043
X-Tour-Commit: c06ca85b8ba3c6c8e62e83212603f85a0b311194
2014-12-05 12:10:14 -08:00
Andrew Gerrand 3e16ed4dad [x/tour] go-tour: Stringer should be an interface, not a struct
Fixes #184.

LGTM=minux
R=campoy, minux
CC=golang-codereviews
https://golang.org/cl/183100043
X-Tour-Commit: 6d5a5d4f22af9317cbd2d6a186767ed27100d716
2014-12-05 11:12:07 +11:00
Shenghou Ma 25bebf6666 [x/tour] go-tour/content/welcome.article: update restrictions of the playground.
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/182390043
X-Tour-Commit: d3f076f0c61491788f8477ed070f9113538fde98
2014-12-02 23:36:54 -05:00
Shenghou Ma 25806a83e6 [x/tour] go-tour: update sub-repo import path
I missed the appengine one in last CL.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/176670043
X-Tour-Commit: 3bf36a971d4d9830b33bd4198536e34dfba12246
2014-12-02 23:36:41 -05:00
Shenghou Ma c54a54b571 [x/tour] gotour: update sub-repo import paths
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/178510043
X-Tour-Commit: 221538ea7fe925401b5757c2fd5f134100e3851a
2014-12-02 01:40:44 -05:00
Francesc Campoy 7bda568a6c [x/tour] go-tour: fix error highlighting when running locally
Fixes #9119.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/177980043
X-Tour-Commit: 3148026f437b1d4f669e06f7bb9a95c8ffd303eb
2014-11-18 08:42:14 -08:00
Francesc Campoy d1af63fb06 [x/tour] go-tour: add error highlighting
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/170040043
X-Tour-Commit: 69bf2c70519f13428b95643a29c44d5db34f34c5
2014-11-11 11:07:01 -08:00
Francesc Campoy efaa714126 [x/tour] go-tour: add semicolons removed accidnetally by gofmt
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/148990046
X-Tour-Commit: 07a2ce422150cc825eb857921608183d61aa917f
2014-09-29 09:36:42 -07:00
Francesc Campoy f44462ec27 [x/tour] go-tour: fix typo in comment
LGTM=adg
R=adg, kevlar
CC=golang-codereviews
https://golang.org/cl/143310043
X-Tour-Commit: aaaa9659f10a1c02326b4cfc6820c3750d89c7a5
2014-09-22 10:27:53 -07:00
Francesc Campoy 54ace85689 [x/tour] go-tour: use tabs for indentation
LGTM=adg
R=adg, kevlar
CC=golang-codereviews
https://golang.org/cl/145160043
X-Tour-Commit: 07f7c13f7ac70e890f4f9918166aa674bb567590
2014-09-18 23:14:13 -07:00
Olivier Duperray 83c1363c2f [x/tour] go-tour: fix list on Zero Values slide
LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/130610044
X-Tour-Commit: 60270cb55b40214211aec4ad11fd60ef7b201c6c
2014-08-29 09:12:58 +10:00
Francesc Campoy 1960712ffd [x/tour] go-tour: store file contents in local storage
Added reset button and moved the syntax checkbox to the top of the editor.

Fixes #179

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/135040043
X-Tour-Commit: a4b9663f897289e128509a825f47841ae506dca0
2014-08-27 22:33:07 -07:00
Francesc Campoy 0a595140ec [x/tour] go-tour: fix storage when localStorage is not available in the browser.
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/135030043
X-Tour-Commit: 9de5f50de161780fcd9c70d898cde9e2bacef1a5
2014-08-27 17:28:08 -07:00
Francesc Campoy 2407281b76 [x/tour] go-tour: add local storage and use it to store syntax highlight mode
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/139720043
X-Tour-Commit: da8aa11edc1ab6691749ddc80df643fe31d29533
2014-08-27 17:20:15 -07:00
Francesc Campoy 6c44a62718 [x/tour] go-tour: adding items to TODO
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/122230043
X-Tour-Commit: 7f6523daffc2ab7b69ae1962cd8df0ac3c2bd0cd
2014-08-07 15:36:58 -07:00
Francesc Campoy 5044f3f47a [x/tour] go-playground: add analytics
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/120700044
X-Tour-Commit: 0389e9a56f376d71a22b579a4b9f09df2a7c1b6f
2014-08-06 20:58:11 -07:00
Andrew Gerrand db7debdf81 [x/tour] go-tour: add import unused messages to TODO
TBR=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/127720043
X-Tour-Commit: 0ae317447009cf4ae1287ead30b7d7dc61301ac4
2014-08-07 10:55:32 +10:00
Francesc Campoy 1ac486981d [x/tour] go-tour: handle error from ListenAndServe
LGTM=adg
R=adg, dan.kortschak
CC=golang-codereviews
https://golang.org/cl/120440043
X-Tour-Commit: ae2b2b6ec52c997bc3e1abb182092f9a9bb341e0
2014-08-04 11:53:15 -07:00
Andrew Gerrand ebc9bd1cbf [x/tour] go-tour: add Stringer, Reader discussions and exercises; other tweaks
LGTM=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/118170043
X-Tour-Commit: eff9b7ba0df29aaa882be16def4b79cc207055f8
2014-07-30 10:50:51 +10:00
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
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 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
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 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 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
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
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
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 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
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
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
Andrew Gerrand 297217b365 [x/tour] go-tour: remove execute bit from javascript file
TBR=campoy
R=golang-codereviews
CC=golang-codereviews
https://golang.org/cl/71870044
X-Tour-Commit: 892c2a1f37b804cbdc47c25413f6c392adc4bd1e
2014-03-06 13:17:27 +11:00
Andrew Gerrand 61b0b4c350 [x/tour] go-tour: put JS libraries in sensible and convenient location
TBR=campoy
R=campoy
CC=golang-codereviews
https://golang.org/cl/69930051
X-Tour-Commit: 75cf3bae9d581088ec7af9e5e9ab6766e50e0b20
2014-03-06 13:13:00 +11:00
Francesc Campoy d6be5799c1 [x/tour] go-tour: serve all javascript in a concatenated file
Load time went down to 539ms from 1.90s!

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/68920046
X-Tour-Commit: d127543acd5abdf30d6da311bc6f8bb28691d5e4
2014-02-26 17:18:46 -08:00
Francesc Campoy 051bdb1a3e [x/tour] go-tour: fix bug for multiple file handling
Explanation: the scope in the view inherits from the one on the controller, therefore reading a field works, but not modifying it.

LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/68990045
X-Tour-Commit: 6c35f3eb226d146cf611bf6552798cb3c406eb0b
2014-02-26 16:17:27 -08:00
Francesc Campoy 34d76933b3 [x/tour] go-tour: tour redesign
The web UI has been implemented from scratch using AngularJS and fetches the content of the modules via a REST APi.

The tour has been split into different modules composed by a list of lessons.

When a new lesson is added it will be accessible publicly, but it won't appear in the list of modules until the corresponding `lesson` element is added to list.html.

The new version is accessible at http://campoy.cat/gotour

LGTM=adg
R=r, adg, kamil.kisiel, egonelbre, nightlyone, dan.kortschak, gobot, bradfitz, davidday
CC=golang-codereviews
https://golang.org/cl/36500046
X-Tour-Commit: 4d282f83d3f705f38e724c60a36f48680e90a71e
2014-02-25 18:28:40 -08:00
Andrew Gerrand 8775c8e55d [x/tour] go-tour: omit tour programs from normal builds
This makes "go build code.google.com/p/go-tour/..." succeed.

LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/67750043
X-Tour-Commit: abd262730b6b6280b31072867cea2a73a654e012
2014-02-24 14:28:32 +11:00
Andrew Gerrand c0c6687cfc [x/tour] go-tour: update default cc to golang-codereviews mailing list
LGTM=minux.ma
R=golang-codereviews, minux.ma
CC=golang-codereviews
https://golang.org/cl/67760043
X-Tour-Commit: 8f4fa45314a925770995f4d49d74b79c201274b7
2014-02-24 14:03:11 +11:00
Andrew Gerrand d113747f90 [x/tour] go-tour/solutions: use canonical import paths, exclude from build
TBR=campoy
R=golang-dev
CC=golang-dev
https://golang.org/cl/64960043
X-Tour-Commit: 89efc831f833af43ddcaebe57c38fa3ada96a563
2014-02-17 16:39:55 +11:00
Andrew Gerrand c624d4a2f9 [x/tour] go-tour: update playground slide
Fixes Go issue 7253.

LGTM=campoy
R=campoy
CC=golang-dev
https://golang.org/cl/59990044
X-Tour-Commit: 65975571d00d1acfc0bfa297296440d5710b7f8e
2014-02-05 11:04:40 +01:00
Francesc Campoy f1431d6c08 [x/tour] go-tour: use variables in type conversion example instead of constants
R=adg, r
CC=golang-codereviews, golang-dev
https://golang.org/cl/54900044
X-Tour-Commit: d9cc0cfd6e426dd8909ce9898d8cf3dd6f2c8aaa
2014-01-24 13:21:49 -08:00
Francesc Campoy 8325ce4b4c [x/tour] go-tour: improve the slide on interfaces.
R=r
CC=golang-codereviews, golang-dev
https://golang.org/cl/45880043
X-Tour-Commit: 91b61d23763f4a65c0745034004117cf35f65c8d
2013-12-26 15:35:29 -08:00
ChaiShushan 1b5ac7988d [x/tour] gotour: update Chinese translation link label
"普通话" is a standard Chinese pronunciation, not include Chinese character.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/38310044
X-Tour-Commit: e386ad7d05e604a3433d10e702878f0cbc9a7cbe
2013-12-09 23:15:50 -05:00
Andrew Gerrand b54353188b [x/tour] go-tour: add Type Conversions and Arrays pages
Also:
- small tweaks to the variables and slice examples,
- a link to image/color from the images exercise.

Fixes #168.

R=golang-dev, dominik.honnef, r
CC=golang-dev
https://golang.org/cl/16490043
X-Tour-Commit: 9086c4758e41fa3ac6ba5a1287f5a6ca3e614f1a
2013-12-06 09:13:26 +11:00
Francesc Campoy b07d7e0d82 [x/tour] go-tour: add Korean translation
R=adg
CC=golang-dev
https://golang.org/cl/32170043
X-Tour-Commit: 458c6d443505731649dbf0ca0ae31af44dbf7100
2013-11-26 10:04:44 +01:00
Andrew Gerrand 6964bfdcca [x/tour] go-tour: add Turkish translation
R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/18300043
X-Tour-Commit: 776b7a2f93eabdf459417043973678f920fc9663
2013-10-28 08:33:00 +02:00
Andrew Gerrand 521e39f223 [x/tour] go-tour: use scripts from go.tools/godoc/static package
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/14185043
X-Tour-Commit: b759eecbcd2bc1f0917454a56abbde0c0e9acfbd
2013-10-01 12:31:27 +10:00
Andrew Gerrand e0b8f53fb4 [x/tour] go-tour: update playground/socket/present import paths
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13311044
X-Tour-Commit: 9e3081c3851f12db4a2f2a106de9ad27804fc7cc
2013-09-19 10:59:04 +10:00
Rob Pike a58b7350b3 [x/tour] go-tour: don't use a pointer to a map in web crawl exercise
It's unnecessary and misleading.
Fixes #6322.

R=adg, dsymonds
CC=golang-dev
https://golang.org/cl/13361050
X-Tour-Commit: 6e0eacd0170251a353129adf30b63f9070707e5d
2013-09-13 16:51:35 +10:00
Andrew Gerrand c71031ce38 [x/tour] go-tour: show lines highlighted with present's "// HLfoo" feature
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13253051
X-Tour-Commit: a77b609bb84a8d86ff1de4b02736e1013a336360
2013-09-13 12:57:50 +10:00
Rob Pike 64593671cd [x/tour] go-tour: explain how to navigate
The extant instructions mention the Next button, which doesn't exist,
but not the table of contents menu, which does.

R=adg
CC=golang-dev
https://golang.org/cl/13673043
X-Tour-Commit: cbe3d607b688dde610f7147be2e4c129db70e763
2013-09-12 11:10:02 +10:00
Rob Pike 6b27e39947 [x/tour] go-tour: update a couple of paths for app engine.
R=adg
CC=golang-dev
https://golang.org/cl/13416046
X-Tour-Commit: f0f898da9a3e3043f62562399366a715a8b94422
2013-09-11 12:03:10 +10:00
Rob Pike 6dcc0e976c [x/tour] go-tour/gotour: fix bug in argument handling
Don't use the default after going to all that trouble to override it.
Mea culpa.

R=adg
CC=golang-dev
https://golang.org/cl/13638043
X-Tour-Commit: bca2cb63546c70b4db9dc7491d203b2071d96f0b
2013-09-11 12:02:45 +10:00
Rob Pike 89835d712d [x/tour] go-tour: move programs and article file into new content subidirectory
Also put the programs into a subdirectory of prog, prog/tour.
This layout will keep things tidier as we add new tours.

At least for now, the images stay where they are because they are served
directly by the web server from the directory named static in the root.

R=adg
CC=golang-dev
https://golang.org/cl/13367049
X-Tour-Commit: 32dc98293039864d9aa3abaee017588d00a77a05
2013-09-10 13:46:15 +10:00
Rob Pike 994ac8754c [x/tour] go-tour/gotour: fix flag handling
- change the flag name to "article"
- give it the correct default
        (it had none, and then was programatically defaulted)
- try the name, then the name in the root
        (before, only the default was looked for in the root)

R=adg
CC=golang-dev
https://golang.org/cl/13441049
X-Tour-Commit: f1f8f55dcb3ed20669a2a550f5cf67469ae8b669
2013-09-10 11:50:20 +10:00
Andrew Gerrand bab5065df4 [x/tour] go-tour: move todos from tour.article to TODO file
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13008044
X-Tour-Commit: d33d1822d1946eb45b3d19cba21b2977e4a34065
2013-08-26 12:14:58 +10:00
Olivier Duperray e1c2304aea [x/tour] go-tour: add -content flag
Fixes #11

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/12038049
X-Tour-Commit: ab20ac194fb3464f25771ecdcec04e0c30b8462d
2013-08-19 10:50:05 +10:00
Andrew Gerrand c44de31d3b [x/tour] go-tour: use new favicon
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13039043
X-Tour-Commit: 13207171058208a24c208b00106266988c6ac63c
2013-08-16 13:45:06 +10:00
Robert Daniel Kortschak 7dcf501f72 [x/tour] go-tour: remove built-in types from syntax highlighting keywords list
Fixes #40.

R=adg
CC=golang-dev
https://golang.org/cl/12975043
X-Tour-Commit: 6495a13de3b545b1fc90a8b340f2b9fa6ac9d9ca
2013-08-15 16:46:37 +10:00
Andrew Gerrand 3e0edb16fb [x/tour] go-tour: don't display sandbox.go with "Go local" page
R=golang-dev, dan.kortschak
CC=golang-dev
https://golang.org/cl/12977043
X-Tour-Commit: fcfd4f65f114654de70739b86e1b58fb2245cd0b
2013-08-15 16:45:26 +10:00
Andrew Gerrand ddbac8b2f4 [x/tour] go-tour: add missing sandbox.go file
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/12976043
X-Tour-Commit: a74eb9e81254be2b1c49344fa5fc4f5978c95d9a
2013-08-15 15:39:19 +10:00
Andrew Gerrand 205eae7c92 [x/tour] go-tour: add slide about sandbox environment
Also mention rand.Seed.

Fixes #108.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/12741045
X-Tour-Commit: b07edc623d421212f709c68992ed1a3e5a8da11b
2013-08-15 14:10:47 +10:00
Olivier Duperray 9c9dde597a [x/tour] go-tour: use moved playground package
Fixes  issue 104 .

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/11977043
X-Tour-Commit: 46c6f08e2d7f37bce0a2c498b27b457fa2c8011d
2013-07-29 09:54:29 +10:00
Andrew Gerrand 581daf4913 [x/tour] go-tour: various expansions and clarifications
All of these are in response to user feedback.

Fixes #66.
Fixes #74.
Fixes #80.
Fixes #83.
Fixes #86.
Fixes #88.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11818043
X-Tour-Commit: f02b491a5263c01570d4395fcb14f1a8c9f861c1
2013-07-25 16:13:42 +10:00
ChaiShushan 3cb3acc577 [x/tour] go-tour: add missing error/rune predeclared identifier for Syntax-Highlighting
R=golang-dev, khr, adg
CC=golang-dev
https://golang.org/cl/11034043
X-Tour-Commit: dd74111beef6622228443a9916ba45cead9488d2
2013-07-23 14:16:22 +10:00
Andrew Gerrand f35d17cd8d [x/tour] go-tour: remove unused flag
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11323043
X-Tour-Commit: 8286aab8361b2dbbc57abb8818461690621214a0
2013-07-16 14:30:25 +10:00
ChaiShushan 8eb4557c68 [x/tour] go-tour: remove unnecessary code
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/10874044
X-Tour-Commit: a8401f258a1187f900b275ea38b36a78372c9614
2013-07-12 11:12:57 +10:00
Andrew Gerrand 49f8bc256a [x/tour] go-tour: fix markup on "If and else" slide
Fixes #82.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11090043
X-Tour-Commit: 2d46303d0294f8169a1dccde4a6fda4172a1455d
2013-07-10 17:08:25 +10:00
Francesc Campoy 5e79259437 [x/tour] go-tour: use time.Millisecond instead of raw constant
R=adg
CC=golang-dev
https://golang.org/cl/11069043
X-Tour-Commit: aff2ab65e9fa1c7bbcfeb4d5918cca90bc90a40a
2013-07-09 16:30:53 -07:00
ChaiShushan 51b0785565 [x/tour] go-tour: add missing delete predeclared identifier for Syntax-Highlighting
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11031043
X-Tour-Commit: e962bc295408c787e99f3b077b65bf7e0d5ba3e2
2013-07-09 16:42:10 +10:00
Andrew Gerrand 29cc97a135 [x/tour] go-tour: update to use new playground.js
R=dsymonds
CC=golang-dev
https://golang.org/cl/10933043
X-Tour-Commit: 0a44f7bf0b56dc5c9401a49cb30188a90f9f2e8a
2013-07-04 13:52:20 +10:00
Andrew Gerrand 563d33c762 [x/tour] go-tour: use a better notation scheme in TODO
R=r
CC=golang-dev
https://golang.org/cl/10901043
X-Tour-Commit: 979062ed8510a9ad7127eb43c55b8b61e5088401
2013-07-03 12:06:18 +10:00
Andrew Gerrand 1712bfd16b [x/tour] go-tour: add TODO list of new content to be added
Somewhat based on this list:
https://code.google.com/p/go-tour/issues/detail?id=21

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/10860043
X-Tour-Commit: 0c9dde419bd201f251f2596631f2221067caae93
2013-07-03 08:30:52 +10:00
Andrew Gerrand 3a3e1cb40e [x/tour] go-tour: panic on failed png encode in tour/pic.ShowImage
Fixes #59.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/10862043
X-Tour-Commit: 1aa93960d45ecda4a542093088235f19985a30e2
2013-07-03 08:30:20 +10:00
Andrew Gerrand 42e3b52569 [x/tour] go-tour: remove "not even optional" about parens on if statements
(They are optional.)

Fixes #52.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/10861043
X-Tour-Commit: 373d0b240026a7e583c5da1e7e025cabfd318f27
2013-07-03 08:29:50 +10:00
Andrew Gerrand af054ea713 [x/tour] go-tour: add talk references to end of tour
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/10670043
X-Tour-Commit: ed531440416f3bee439d890c2a8773777d970351
2013-06-29 15:08:34 +10:00
Andrew Gerrand 97f687e60c [x/tour] go-tour: trim spaces around source code before displaying
Changes to the way code is generated add some space around the
code snippets, which can be quite ugly. This fixes that issue.

R=golang-dev
CC=golang-dev
https://golang.org/cl/10729043
X-Tour-Commit: 58f0cb79e873fb655abeb71dcd794e309b8db3fd
2013-06-29 15:08:07 +10:00
Alex Brainman 68ebacd8ed [x/tour] go-tour: do not clear environment when running programs
Fixes Go issue 5694

R=adg
CC=golang-dev
https://golang.org/cl/10373043
X-Tour-Commit: 8aa851cae0e32b5f92e5458b370252ce8807cd42
2013-06-18 18:14:16 +10:00
Andrew Gerrand d63d0a486c [x/tour] go-tour: fix link markup
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/10367044
X-Tour-Commit: bebe737dd949d51ef4f2e09804b34568d5068fba
2013-06-18 13:56:36 +10:00
Andrew Gerrand 14548854ca [x/tour] go-tour: nudge "Go" index button over a tad
This is a precursor to adding a Google Feedback link to the tour.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/10335043
X-Tour-Commit: 03ce0332d4778215df0398c7bf75e74e11e97b3a
2013-06-17 16:32:06 +10:00
Andrew Gerrand 8ca26dc706 [x/tour] go-tour: pass TEMP and TMPDIR environment variables to go tool
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/10255043
X-Tour-Commit: b71f28eef4b064352dc5d3df01487a127e4de9a7
2013-06-13 15:21:26 +10:00
Andrew Gerrand 3032db634d [x/tour] go-tour: link to French translation
Fixes #61.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9592045
X-Tour-Commit: c28dee094f9029e79ac9f33f822cab3022f9dc51
2013-05-22 08:14:36 +10:00
Andrew Gerrand 361860ed4d [x/tour] go-tour: more precise wording to describe &T{}
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/9228043
X-Tour-Commit: 877bace0862f36c2b6283d702fe2bd6eb516b171
2013-05-06 10:05:41 -07:00
Andrew Gerrand 2ff2fc8b71 [x/tour] go-tour: fix format function
Once Go 1.1 is out we can use go/format.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8698048
X-Tour-Commit: eb434147af906053f7ec0d041687ca422e850109
2013-04-23 13:24:27 +02:00
Andrew Gerrand 0c5b712a41 [x/tour] go-tour: use playground package from go.talks for /compile handler
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8839044
X-Tour-Commit: c7374255f627de1d833c24ab73b75f6e7c25ef75
2013-04-22 16:57:38 +02:00
Andrew Gerrand 4ca13a520c [x/tour] go-tour: replace Table of Contents button
The previous version was the Envy Labs logo. (Oops.)

R=r, christoph
CC=golang-dev
https://golang.org/cl/8750045
X-Tour-Commit: b7886e5e2d119350288a752a60ef46102bc200ad
2013-04-22 12:39:31 +02:00
Zorion Arrizabalaga cb34b5f78b [x/tour] go-tour: Add Spanish to the local versions
R=adg, campoy
CC=golang-dev
https://golang.org/cl/8599044
X-Tour-Commit: f68054f41aa70677896f48097b6dfc71f74c2254
2013-04-17 14:06:34 -07:00
Andrew Gerrand b0636e42e9 [x/tour] go-tour: supply alternate GOPATH when building locally
Fixes #5246.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/8567043
X-Tour-Commit: 82d4c403ae1e67b7f2da81667630be0437522f66
2013-04-09 20:25:36 +10:00
Nicholas Presta 7b6ae0b2de [x/tour] go-tour: implements full screen width on slides without the embedded playground.
See: https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/3C0au28yAGA

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/8544043
X-Tour-Commit: 810590b492d53d8063586d3c99fa98b33d1e52cd
2013-04-09 13:13:11 +10:00
Zorion Arrizabalaga f2de271a7a [x/tour] go-tour: Make two attrib 'title' language-dependent
R=adg
CC=golang-dev
https://golang.org/cl/7978043
X-Tour-Commit: 1346dfc08d10b266f38d67676270e5642d8a5f9d
2013-04-03 21:01:05 +11:00
Andrew Gerrand 6055700475 [x/tour] go-tour: display images in websocket mode
Fixes #31.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/8286043
X-Tour-Commit: 85ea7cad81e1b13b5b663af7df6bd02585988c81
2013-04-03 08:59:22 +11:00
Francesc Campoy 8e6da7cb83 [x/tour] go-tour: Adding semicolons that were dropped by gofmt
R=golang-dev, minux.ma, r
CC=adg, golang-dev
https://golang.org/cl/7450043
X-Tour-Commit: 5f4553be8f8eb0a51b47ab09b91a00805102cc34
2013-02-28 12:40:05 -08:00
Francesc Campoy 778c50c333 [x/tour] go-tour: Fix introduction slide and a formatting error.
R=adg
CC=golang-dev
https://golang.org/cl/7377055
X-Tour-Commit: a9fef78bf8606629b6d06c3a54436f6e6a34d114
2013-02-26 17:33:41 -08:00
Andrew Gerrand cd0b568e94 [x/tour] go-tour: set PlayEnabled flag before parsing
initTour is called from init funcs in local.go and appengine.go,
while PlayEnabled was being set by an init func in tour.go.
It was possible that initTour would be called, rendering the tour,
before PlayEnabled is set to true.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7409043
X-Tour-Commit: dc2b817fe8c054a473ed88fd04eae9d2a90c5991
2013-02-26 13:36:33 +11:00
Xing Xing 624c48bde4 [x/tour] gotour: Replace a hardcoding string with a template mark.
Replace the hardcoding string ``A Tour of Go''
with a template mark ``{{.Title}}''.
It will take a better user experience to the other language.

R=golang-dev
CC=golang-dev
https://golang.org/cl/7393044
X-Tour-Commit: cbe82c03fed01cf71201048a9d12b4e94aa0d94a
2013-02-21 13:07:04 +11:00
Andrew Gerrand fc757c0738 [x/tour] go-tour: render tour just once at startup
R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/7331046
X-Tour-Commit: 81025590604d77e65574c5196a86a11decc522d3
2013-02-15 13:06:05 +11:00
Andrew Gerrand cac7d6f1c0 [x/tour] go-tour: honor -http argument in websocket code
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/7305094
X-Tour-Commit: 60ee4478de10ee238109a8cf7c9066099553a06a
2013-02-15 11:15:18 +11:00
Andrew Gerrand 1d65876c7d [x/tour] go-tour: add Catalan translation
R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/7314094
X-Tour-Commit: 4fa06497f72b19239ebfc316d04f1fa27a62f5c2
2013-02-14 17:36:26 +11:00
Andrew Gerrand 52414287a6 [x/tour] go-tour: Romanian not Romainian
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7311089
X-Tour-Commit: d9b72d558ecc8b1d67884d560214d7fc78c6485b
2013-02-13 08:53:38 +11:00
Andrew Gerrand 22cff79e0b [x/tour] go-tour: add notes on translating the tour
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7311081
X-Tour-Commit: d854ecf725dd538d20560a16f3814e6bf8c28bf3
2013-02-13 08:15:07 +11:00
Andrew Gerrand dde854514c [x/tour] go-tour: add link to Romainian translation
R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/7304081
X-Tour-Commit: d1ee24b5add1022f42ff75a6e27484d4d073312b
2013-02-13 08:12:37 +11:00
Andrew Gerrand 9c649dc778 [x/tour] go-tour: restore images
Fixes #55.

R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/7306091
X-Tour-Commit: 6c4fe98535d06a0b4ad00e39d64729be95ea1284
2013-02-12 15:25:33 +11:00
Andrew Gerrand 3a31cb98f4 [x/tour] go-tour: restore loading message
R=golang-dev
CC=golang-dev
https://golang.org/cl/7299061
X-Tour-Commit: 9e301b93d309191564cb63c2db0c7189b8a29df8
2013-02-07 18:17:33 +11:00
Andrew Gerrand 9f607b7b08 [x/tour] go-tour: turn syntax highlighting off by default
I'm not sure how this came undone, but it did.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/7312054
X-Tour-Commit: 3d8457047c52314735f39e3da434fe3498817007
2013-02-07 18:01:44 +11:00
Andrew Gerrand dcde31dcef [x/tour] go-tour: move javascript files from static to new js directory
This permits the App Engine app to actually access the JS files when
serving /script.js. (Inside static/ they are considered static content
and are unavailable to the running app in production.)

R=dsymonds
CC=golang-dev
https://golang.org/cl/7306060
X-Tour-Commit: 4d280bfc0ee418a4d789f88a965f5eea9aba4208
2013-02-07 13:40:04 +11:00
Andrew Gerrand 594111a7e0 [x/tour] go-tour: use new playground API and websocket backend
R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/7305049
X-Tour-Commit: 1066f5dc65c801634e9ac011586aef569c9ecad7
2013-02-07 11:56:28 +11:00
Francesc Campoy df4af8f314 [x/tour] go-tour: Rearranging slides to have a more natural flow.
R=adg
CC=golang-dev
https://golang.org/cl/7275043
X-Tour-Commit: cf7429f7694836d3def7cb06c6bc96394cb8035d
2013-02-06 10:14:34 -08:00
Andrew Gerrand 67aaec6aac [x/tour] go-tour: remove new york talk and defunct mode.js
The gotour binary doesn't support alternate content anymore.
Maybe it will again some day, but for now it's not worth the
complexity.

R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/7273051
X-Tour-Commit: 45453969c07243b3d132a71f0a7fcd6de56bc778
2013-02-05 12:36:04 +11:00
Andrew Gerrand 9b5c25aed9 [x/tour] go-tour: fix app engine version, restoring online-specific content
R=minux.ma, campoy, campoy
CC=golang-dev
https://golang.org/cl/7195043
X-Tour-Commit: 8efbb899e2dc45f142061634ae5bbb3e09d0b129
2013-01-25 10:24:33 +11:00
Francesc Campoy 8e300d9b7d [x/tour] go-tour/gotour: find html root through running directory if package lookup fails.
R=adg, minux.ma
CC=golang-dev
https://golang.org/cl/6920055
X-Tour-Commit: c7762abd5765944f4d3702d736db671988a58e8c
2013-01-24 14:16:50 -08:00
Andrew Gerrand 009a79d95f [x/tour] go-tour: convert from HTML to present format
This makes it easier for us to maintain the tour, and puts the tour
sample programs in individual go files that are compilable and
testable.

This also removes the code that shows content specific to the appengine
or local versions, erring on the side of inclusivity. I intend to add
some more appengine-specific stuff in a followup CL.

R=campoy, bradfitz, campoy, rsc
CC=golang-dev
https://golang.org/cl/6896044
X-Tour-Commit: 6cf2ff095922478bbac9113502c3d6227d7cee5d
2013-01-23 17:39:23 +11:00
Shenghou Ma e41f1c8abe [x/tour] gotour: automatically open browser window if possible
Fixes #51.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6945074
X-Tour-Commit: 71eca81097ec4cdde7c4213e7f02789ede261323
2012-12-21 02:52:20 +08:00
Shenghou Ma a06c65eb04 [x/tour] go-tour: add note about Go playground's clock time
Also fix a small comment in gotour/local.go

R=golang-dev, r, adg
CC=golang-dev
https://golang.org/cl/6822107
X-Tour-Commit: 55d692cb3726f11f9d70dc5bd75ed738e79d31bc
2012-12-18 21:19:12 +08:00
Jeff R. Allen 33579b3b2d [x/tour] tour: Internationaliztion of the user interface
With this change, translators no longer need to muck about
in tour.js. They need only edit index.html.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6639062
X-Tour-Commit: a880be18ba475871b659d163f663e4bb5f00266c
2012-12-10 15:27:03 +11:00
Andrew Gerrand b0d3d3b4d0 [x/tour] go-tour: give each slide a unique name
This will allow us to use human-readable fragments when linking to
pages (eg, #methods instead of #37), make it easier to re-order slides,
and store the code samples in separate go files.

R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/6867048
X-Tour-Commit: 058039244114ecbccdc65f094da42aa2ebc8808c
2012-12-04 11:36:46 +11:00
Andrew Gerrand bc81b482d5 [x/tour] go-tour: move solutions to repository root
R=golang-dev, campoy
CC=golang-dev
https://golang.org/cl/6874048
X-Tour-Commit: e3c6237304edea682381c58b050b4d373cd53345
2012-12-04 10:15:10 +11:00
Francesc Campoy 521da7d429 [x/tour] go-tour/gotour/solution: Adding alternative solution to the image exercise.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6782136
X-Tour-Commit: 35646bbb715f15c704d8f2410292b6c594c66583
2012-12-01 11:00:40 -08:00
Francesc Campoy d0cbc79d8f [x/tour] go-tour: Fixing wrong solution for slices exercise.
Fixes #50

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6842111
X-Tour-Commit: b92b00c8b4785525de42d2b1ed15c71ed713298e
2012-11-28 11:09:32 -08:00
Andrew Gerrand 6428b8861a [x/tour] go-tour: link to screencast from final page of tour
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6852043
X-Tour-Commit: d6ce57d1cbfd801cc584a4f8cbb8761ba5a9adf3
2012-11-13 16:50:24 +01:00
Andrew Gerrand 51113c7a9b [x/tour] go-tour: add link to Hebrew translation
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6813115
X-Tour-Commit: 2fc8a34e9db699583a50272b30c28028af400424
2012-11-12 15:59:04 +01:00
Andrew Gerrand 85d9e19c0e [x/tour] go-tour: fix lat/long of bell labs
R=golang-dev
CC=golang-dev
https://golang.org/cl/6810110
X-Tour-Commit: 3135697d0055de04ba001a980a74c2368ca3a733
2012-11-12 14:38:25 +01:00
Andrew Gerrand 9581ce86d5 [x/tour] go-tour: don't reset code on slide change
R=bradfitz
CC=golang-dev
https://golang.org/cl/6819060
X-Tour-Commit: 7ba7c54b28a8cf5e6d234f06e704317e057ed327
2012-11-01 00:26:00 +11:00
Francesc Campoy 12d2c4a38b [x/tour] go-tour: Fixing webcrawler solution.
Fixes #45

R=adg, r
CC=golang-dev
https://golang.org/cl/6823054
X-Tour-Commit: 0e15f8935157e722053c261fa6407f51e63536c5
2012-10-30 16:36:04 -07:00
Francesc Campoy 6e55638aeb [x/tour] go-tour: add copyright notices
R=adg
CC=golang-dev
https://golang.org/cl/6589070
X-Tour-Commit: 19ab4a16dcb99415efb3a3de3ae2139db8a74fc4
2012-10-03 16:54:45 -07:00
Francesc Campoy edb5820a76 [x/tour] golang-tour: Solutions to the exercises.
R=adg
CC=golang-dev
https://golang.org/cl/6585074
X-Tour-Commit: 6539f1a515571891846b5c7510ab8f75c7f09ae2
2012-10-03 16:24:20 -07:00
Shenghou Ma 64fbe27969 [x/tour] tour.js: correctly restore saved lineno and syntax highlight cookies
CL 6494135 flipped the switch for syntax highlighting, but forget to update this part of tour.js, which suggests the js code has violated single source of truth principle.

Fixes #4135 (in the Go project).

R=adg
CC=gobot, golang-dev
https://golang.org/cl/6542062
X-Tour-Commit: eaa0bf5fceab80b0d6a0e12b9084907d9152e25a
2012-09-23 16:24:55 -05:00
Andrew Gerrand 82012d6c32 [x/tour] go-tour: point to more up-to-date Chinese translation
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6489123
X-Tour-Commit: da6cf937df0c4af8088209b2f29640f9e3cdd157
2012-09-14 13:28:43 +10:00
Xing Xing d56cc0ad58 [x/tour] go-tour: escape ">" to ">".
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6490109
X-Tour-Commit: c59f5b1878f0381872487acfe4508aa7e02ad70e
2012-09-14 12:33:15 +10:00
Andrew Gerrand bedbe041d7 [x/tour] go-tour: add fmt.go to appengine
R=golang-dev
CC=golang-dev
https://golang.org/cl/6503117
X-Tour-Commit: 1d8f9b26783526603afaa97f49fb189a18452faa
2012-09-14 10:01:48 +10:00
Andrew Gerrand 6c4f31c937 [x/tour] go-tour: disable syntax highlighting by default
By popular demand.

R=golang-dev, tux21b, rsc
CC=golang-dev
https://golang.org/cl/6494135
X-Tour-Commit: feac304495b3aeff5f41e0413bcbc8ec3621493b
2012-09-14 09:01:35 +10:00
Christoph Hack 8bdd9a54b6 [x/tour] gotour: new design
This CL introduces a new design for the go-tour with the
following new features:

* new look that includes a gopher and uses the same
  fonts and colors as the current golang.org site

* responsive design that works well on small screens
  (width <= 800px), mid-sized screens (800px - 1100px)
  and large screens (width > 1100px)

* updated editor (CodeMirror) to the current version,
  which contains a lot of bug fixes

* syntax highlighting (both, syntax highlighting and
  line numbering can be disabled with one click)

* additional buttons for go-formatting the current
  source and killing the current program

* valid HTML5 markup

* cross browser support

The new site was tested with the current desktop versions
of Chrome, Firefox, Opera and Internet Explorer 7, 8, and 9
as well as the stock Android browser and Chrome for Android
(on a Galaxy Nexus with Jelly Bean).

R=golang-dev, adg, tux21b, rogpeppe, franciscossouza, j.l.vanderzwan, 0xjnml, r, rsc
CC=golang-dev
https://golang.org/cl/6396046
X-Tour-Commit: 51b1725acfb9fd892a70cfeb4761820508dd5048
2012-09-13 09:06:47 +10:00
Andrew Gerrand bfbba90b36 [x/tour] gotour: use 'index' consistently
R=golang-dev, jsing
CC=golang-dev
https://golang.org/cl/6500071
X-Tour-Commit: 25d089c8466e0c90607e3da9352621c8fb6d8397
2012-09-04 16:12:14 +10:00
Shenghou Ma 36d8050a52 [x/tour] go-tour: add .hgignore, and use "The Go Authors" in LICENSE
R=adg
CC=golang-dev
https://golang.org/cl/5706059
X-Tour-Commit: 6c69bb65045d3d91b2ced86dc046076a01a9aac1
2012-08-08 10:19:30 +10:00
Christoph Hack 0d80d55077 [x/tour] gotour: do not skip the first fibonacci number in the example code.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6345076
X-Tour-Commit: c62635185779625f8d4a7740004584f3943794ec
2012-07-26 12:34:25 +10:00
Andrew Gerrand 1a8a7df5fa [x/tour] go-tour: link to translated versions fo the tour
(These ones are up to date. The Korean one still seems stuck at r60.)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6421059
X-Tour-Commit: 18bc09877868bf966051d696e27d9435645c4453
2012-07-22 15:38:53 -07:00
Andrew Gerrand fd882e1383 [x/tour] go-tour: remove last slide memory
I've had a few reports that this is confusing. Maybe it could come back
at some point in another form (eg, "Welcome back! Do you want to resume
from where you left off?").

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6206101
X-Tour-Commit: 96f97fc87b3708d9e6549a7325328c118d3602ab
2012-05-23 15:11:31 +10:00
Alex Brainman dd6f4d85ae [x/tour] go-tour: show "go.exe is not found" message
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6201066
X-Tour-Commit: 057035588fe4a81c6d8fa3a564673fb60ae97617
2012-05-15 13:14:00 +10:00
Sameer Ajmani cffa29c710 [x/tour] Add an appEngineMode slide for the NYC talk.
R=adg
CC=golang-dev
https://golang.org/cl/6191044
X-Tour-Commit: 94ade8ab8b20abc3c090e1d3fbd44d246dee64c9
2012-05-08 08:33:26 +10:00
Andrew Gerrand 0484b65b68 [x/tour] go-tour: add talks directory to app.yaml
R=golang-dev
CC=golang-dev
https://golang.org/cl/6173048
X-Tour-Commit: 80c00edce671a758634e793c507818bc84a76a58
2012-05-04 08:18:17 +10:00
Sameer Ajmani 5c19423a1b [x/tour] go-tour: add /talks/ subdirectory, and add NYC Google tech talk meetup talk.
R=adg
CC=golang-dev
https://golang.org/cl/6178046
X-Tour-Commit: d263a1db563dff91a9ab15c5e0e9cb6265a71574
2012-05-04 07:59:37 +10:00
Kyle Lemons 67329ac796 [x/tour] gotour: save to HTML5 LocalStorage
This change adds LocalStorage to persist both the code that the
user has created and the page the user last visited.  To facilitate
the first, a [RESET] button was added in the lower corner.

Fixes #2.
Fixes #16.

R=adg, rsc, kevlar
CC=golang-dev
https://golang.org/cl/5695068
X-Tour-Commit: ea03a1fc8be837d9ed8ca0e29be19a5c55b61184
2012-05-03 08:55:06 +10:00
Andrew Gerrand ed85b8c867 [x/tour] go-tour: add more about maps
Fixes #24.

R=golang-dev, christoph, r
CC=golang-dev
https://golang.org/cl/6132053
X-Tour-Commit: 46c3ab8e0984bf72d86bf728159047cef7583075
2012-05-02 07:21:30 +10:00
Andrew Gerrand 52ca10acc0 [x/tour] gotour: make the console messages more descriptive
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6035051
X-Tour-Commit: 9280626dfd920bed146a6d410e3c2d7bc76845fc
2012-04-15 10:38:43 +10:00
Andrew Gerrand 971ee051d6 [x/tour] go-tour: correct a link, expand cmplx.Pow hint
Fixes #30.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5967062
X-Tour-Commit: 15b56d092b0199e930393851877e9c445a34bc92
2012-04-02 06:46:50 +10:00
Shenghou Ma d736f2abe7 [x/tour] go-tour: minor HTML/link error fixes
Fix issue 3421 for the go project.

R=golang-dev, adg, r
CC=golang-dev
https://golang.org/cl/5946048
X-Tour-Commit: 1553c4643e18c8877eedc6db0e411c78b2793161
2012-03-30 18:17:05 +11:00
Andrew Gerrand 8aafa8c17e [x/tour] go-tour: sync playground.js
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5955043
X-Tour-Commit: 7ef1525e8b9c5d9ed0e69fcc32adbff3cae3b43e
2012-03-29 14:18:10 +11:00
Andrew Gerrand ca722da10d [x/tour] go-tour: update to api_version go1, fix pass-thru compile handler
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5952044
X-Tour-Commit: 3affaf0685c91c97f454acab2a4749e168cd51df
2012-03-29 14:14:03 +11:00
Andrew Gerrand 9e30b38231 [x/tour] go-tour: update to point to golang.org, not weekly
R=r
CC=golang-dev
https://golang.org/cl/5935046
X-Tour-Commit: a0d262d20f2bbd9958334dfa3e0401a394dbe6b5
2012-03-29 02:44:46 +11:00
Andrew Gerrand f9e1ee098d [x/tour] go-tour: a few small fixes
R=r, gri
CC=golang-dev
https://golang.org/cl/5877048
X-Tour-Commit: 6782fc0b5ecf8f3cbccbfe85e24f724782d7c7e2
2012-03-26 09:33:26 +11:00
Andrew Gerrand 5d0bb3c4fd [x/tour] go-tour: use new go/build package
Fixes #28.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5752046
X-Tour-Commit: cd82d8b0d50d39ff6bc4e35b67125751a11555b8
2012-03-06 10:04:44 +11:00
Andrew Gerrand 3bcd005ecd [x/tour] go-tour: switch to subrepo-style codereview setup
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5707051
X-Tour-Commit: c4f3b22b052592b35d388fd90ee2186bc9a8d39c
2012-02-29 10:37:38 +11:00
Shenghou Ma b441a0244e [x/tour] go-tour: various updates for Go 1
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5702045
X-Tour-Commit: 5b795fb97d96203cb16b61371e404f87930b22ff
2012-02-29 09:34:19 +11:00
Andrew Gerrand 00819d48b4 [x/tour] go-tour: recommend installing weekly (just temporarily)
The playground is now updated to the latest weekly snapshot,
so the tour needs to be updated as well. It's not a great
experience to recommend release when they've just been learning
how to write Go 1 code.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5701068
X-Tour-Commit: 7a4800e3b6d5ca5f4f7a7e40c9ad42e12cc81dde
2012-02-28 15:28:43 +11:00
Andrew Gerrand 021378ba62 [x/tour] gotour: update to use 'go build'
R=bradfitz
CC=golang-dev
https://golang.org/cl/5655060
X-Tour-Commit: 104f007d62242d9317f2f9e4c24bb2b4b0878b82
2012-02-12 14:51:01 +11:00
Andrew Gerrand d351f59e35 [x/tour] gotour: fix .hgtags
R=golang-dev
CC=golang-dev
https://golang.org/cl/5502057
X-Tour-Commit: 2ecb598c7ab28b4d04bffeb6113763f4e02406cb
2011-12-21 21:33:15 +11:00
Rob Pike debd6c2385 [x/tour] go-tour: update examples and text to Go 1
Fixes #20.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5495083
X-Tour-Commit: 2bfa17b7f404be6fa8caa931c12f3f9b70808bf4
2011-12-17 21:14:05 -08:00
Rob Pike 4da791e266 [x/tour] gotour: update to go 1
R=adg, adg
CC=golang-dev
https://golang.org/cl/5495071
X-Tour-Commit: 8922303df67ec6e2bbf55182ed4350f073347a76
2011-12-16 18:00:43 -08:00
Andrew Gerrand 9eb0749cac [x/tour] C: add r
R=r
CC=golang-dev
https://golang.org/cl/5492065
X-Tour-Commit: 2545043606a26ac8a6c12110ed3a205e13b6888a
2011-12-17 13:00:06 +11:00
Andrew Gerrand ead7c4576e [x/tour] gotour: add .hgtags for r60.3
R=r
CC=golang-dev
https://golang.org/cl/5495072
X-Tour-Commit: adcf019f72801dd368fa009d81c8629e1eeeeb8f
2011-12-17 12:56:40 +11:00
Andrew Gerrand 49086bc891 [x/tour] gotour: link to Chinese translation of A Tour of Go
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5410044
X-Tour-Commit: f69272c4f15f6e1cebd219efa6b3035a750d0b94
2011-11-18 15:54:38 +11:00
Andrew Gerrand 1edcec844b [x/tour] gotour: float64(1.0) -> float64(1)
R=rsc
CC=golang-dev
https://golang.org/cl/5396052
X-Tour-Commit: 291dd58bb551a40d442ce6fa6d4814d7c733e56a
2011-11-17 18:05:43 +11:00
Andrew Gerrand 6d3571caf5 [x/tour] gotour: fix misleading hint (currently suggests divide by zero)
Fixees issue 15.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5399051
X-Tour-Commit: 8b076cce91ef5e04070ec9cb987cc458dfa382eb
2011-11-17 15:13:20 +11:00
Andrew Gerrand fd76f59542 [x/tour] gotour: resolve ambiguous reference to PI
Some people were confused when math.Pi worked, but not math.PI.
Making this paragraph abstract helps.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5311084
X-Tour-Commit: 8156e93d804f063bc7cb01f21d441c2b6e21ce29
2011-11-04 09:53:02 +11:00
Andrew Gerrand 61ecd938e1 [x/tour] gotour: advertise other language translations
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5298074
X-Tour-Commit: b329b04775942611f115866b191bcaff6025d4c4
2011-10-28 12:15:04 +09:00
Andrew Gerrand c1846471c4 [x/tour] gotour: rename Vertex variables to v
Fixes #12.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5308049
X-Tour-Commit: 25eb531f7da326fc74ecec237b610ff80ca9bd61
2011-10-24 12:50:40 +11:00
Andrew Gerrand f460d166bf [x/tour] gotour: add appengine parts
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5272046
X-Tour-Commit: 7e1006e32f7fbe4b3a8f34727f4bc65a70009ea8
2011-10-14 16:23:16 +11:00
Andrew Gerrand 3e9092b22a [x/tour] gotour: use CodeMirror editor
Fixes #1.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5248064
X-Tour-Commit: fd807f94be09a8de6ccb43d2aa65338a0e165842
2011-10-13 10:58:14 +11:00
Andrew Gerrand 22bab4e04e [x/tour] tour: fix formulae for sqrt/cbrt exercises
R=rsc, thakis
CC=golang-dev
https://golang.org/cl/5248053
X-Tour-Commit: 0b86163924a0e9ed1d952497bce50b77884b6422
2011-10-10 09:54:37 +11:00
Andrew Gerrand 5b535e49f7 [x/tour] rename k to i in range example
X-Tour-Commit: a7fa439795f7abe5a7b14f3dfdcfc0029cfdb226
2011-10-10 07:29:33 +11:00
Andrew Gerrand 9a99bd2283 [x/tour] another typo
X-Tour-Commit: 63733f1ad9732c0e1421e8c25b91895411db0fd5
2011-10-09 17:12:32 +11:00
Andrew Gerrand c3b55fd62a [x/tour] fix typo
X-Tour-Commit: a046bd35e81e936b691c37970be46da5517529f0
2011-10-09 17:07:07 +11:00
Andrew Gerrand 8da0b7e24d [x/tour] add note about stable release
X-Tour-Commit: 97fbebc3d97c879dcfca8abe679c789c25b7d03c
2011-10-05 10:24:07 -07:00
Andrew Gerrand b2cc68e903 [x/tour] add codereview
X-Tour-Commit: c5b23e98c7b698a7e7fb7c3aac0ed672582e96ff
2011-10-04 18:12:42 -07:00
Andrew Gerrand 2471b6d236 [x/tour] grammar tweaks
X-Tour-Commit: d551a584335a4d42f5252b871aa32aeda27b06e8
2011-10-04 14:33:34 -07:00
Andrew Gerrand 8c4cc1dd8a [x/tour] added struct field and 'new' slides
X-Tour-Commit: 673bc9b9485185168961997b286d76f6467fd89a
2011-10-04 11:26:17 -07:00
Andrew Gerrand 91825d84f4 [x/tour] new intro
X-Tour-Commit: bb362abe39b8832d0298398e40a82437043fdbf7
2011-09-29 16:22:43 -07:00
Andrew Gerrand c0d9ee3d60 [x/tour] sync with appengine tour
X-Tour-Commit: 8eb98cb1a91415c0b52792e0f71e787b2f70b4dc
2011-09-29 11:44:37 -07:00
Andrew Gerrand 63e428bbb4 [x/tour] sync tree
X-Tour-Commit: 30fcdeaa05621cfe97025b1243ab1daba27c852d
2011-09-29 10:58:23 -07:00
Andrew Gerrand 50c3d233c6 [x/tour] update for r60
X-Tour-Commit: fe07700382d0783462e1f513f0783a09321f4b4c
2011-09-12 17:38:04 +10:00
Andrew Gerrand cdfc77f894 [x/tour] better rot13 description
X-Tour-Commit: 0d1c08a5f6157ae04e6d1941b85cce4fe6af838a
2011-09-06 10:36:57 +10:00
Andrew Gerrand 6c5faa0fc4 [x/tour] rot13 reader
X-Tour-Commit: 9dc628f52edef05534d3f0abef169f51c5df6392
2011-09-05 18:06:27 +10:00
Andrew Gerrand 154b3853e9 [x/tour] update to work with latest release
X-Tour-Commit: a94c3ed303eef34a3e55d4fdab2c2fca3c207b62
2011-09-05 17:22:04 +10:00
Andrew Gerrand fcc7c3c2a5 [x/tour] new pointer slide
X-Tour-Commit: 6c43f53aee51c838e716385e94922e4deec20857
2011-09-05 17:05:22 +10:00
Andrew Gerrand d6b01bad8e [x/tour] add wc.Test function
X-Tour-Commit: 93e041dca7321db10205d07c691d6828bc9a8c2c
2011-09-05 15:32:48 +10:00
Andrew Gerrand 5a800c2fbb [x/tour] more formatting
X-Tour-Commit: 5e132ae0c610b5ff9089bfbe792c9496281a7595
2011-07-26 06:49:06 +10:00
Andrew Gerrand 0db4fb3422 [x/tour] Tweaks to the first session
X-Tour-Commit: a867c2c71fbecd7223f1d14216b3c2e7301990c8
2011-07-26 05:50:32 +10:00
Andrew Gerrand 92fab8d40f [x/tour] Tweaks and added jquery
X-Tour-Commit: e903ded580d708416378a955823dc9509a5c6efa
2011-07-26 05:32:03 +10:00
Andrew Gerrand 2140e24283 [x/tour] link to slices blog post
X-Tour-Commit: e7d748201149a97398db220a4ef91708aa78fab4
2011-07-24 13:58:44 +10:00
Andrew Gerrand 0ac69a73c5 [x/tour] s/Point/Vector/, slice examples
X-Tour-Commit: f06beb3f15c349bcf1705eb0b9ce4f46ab862e7a
2011-07-24 12:40:25 +10:00
Andrew Gerrand 8d9dd3f4f0 [x/tour] merged
X-Tour-Commit: a0b689c00bed980cc6918d754879b2eef042ec2e
2011-07-24 10:46:06 +10:00
Andrew Gerrand 0c803174ea [x/tour] typo
X-Tour-Commit: 116b1a62d15a824a7ba9f61931742196bf2f663a
2011-07-24 10:43:23 +10:00
Andrew Gerrand 0f61cb6e8e [x/tour] tweaks
X-Tour-Commit: 80589198d53d802d55d5873c8bd217705a19bf71
2011-07-22 11:06:25 +10:00
Andrew Gerrand 99fe38a6ef [x/tour] tweaks
X-Tour-Commit: fd7ab8b891831b762c8b4f1b930f4a834672ff19
2011-07-21 14:13:00 +10:00
Andrew Gerrand bdb78b93a3 [x/tour] add missing nocode classes
X-Tour-Commit: 0281a55bd68879084e83fe6b00d927335d24d592
2011-07-19 15:32:47 +10:00
Andrew Gerrand 0c9382015d [x/tour] remove logging
X-Tour-Commit: e38d3ea96894df33585eb47ac9be47345e8b8a2f
2011-07-19 15:32:35 +10:00
Andrew Gerrand 695d7818e0 [x/tour] tidying js
X-Tour-Commit: 4824c6044a1f59cc25dd1e08baa7e89c7789a0a7
2011-07-19 15:25:53 +10:00
Andrew Gerrand 5c7e85f8d3 [x/tour] kill button
X-Tour-Commit: 5d0b5e0522676e190de08fee9ad4771235fe996c
2011-07-19 15:22:26 +10:00
Andrew Gerrand 052de8f416 [x/tour] table of contents
X-Tour-Commit: 23b15552fd0709638426d2001ff728e425c2d8cd
2011-07-19 15:13:39 +10:00
Andrew Gerrand 1c3e759b34 [x/tour] minor tweaks
X-Tour-Commit: 48ff1f7bd30277ea5e0572101649c5bdf195d1f0
2011-07-19 11:42:32 +10:00
Andrew Gerrand 1c08402eb7 [x/tour] added tree example errata
X-Tour-Commit: 34ef39ffb18e2d7302340f65d2b061cba16e899b
2011-07-18 17:35:31 +10:00
Andrew Gerrand 514ccfdd71 [x/tour] more slides
X-Tour-Commit: 56b581fc0ce63be689519a69dbc5b4baedd9c9f8
2011-07-18 17:30:31 +10:00
Andrew Gerrand c8a64f8188 [x/tour] css tweaks
X-Tour-Commit: f2cb5e0df9722b71ccecec06f64dad422192eff8
2011-07-18 17:30:18 +10:00
Andrew Gerrand 08c4225efe [x/tour] implement full-screen code
X-Tour-Commit: eb1f0119d377bd767a690b799297b7cbe0cf12c5
2011-07-18 13:27:24 +10:00
Andrew Gerrand 5d3839ca4d [x/tour] initial commit
X-Tour-Commit: ab572597e342dc4e3a03dfd56449037d879e4e71
2011-07-14 16:39:17 +10:00