This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
d850789fb984
- Loading branch information
0 parents
commit fa6de13
Showing
142 changed files
with
12,148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
syntax:glob | ||
last-change | ||
*.orig | ||
*.rej |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dd4b1d7bebbd608f280c15b2fe76d9da3ac91c10 go.r60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This source code refers to The Go Authors for copyright purposes. | ||
# The master list of authors is in the main Go distribution, | ||
# visible at http://tip.golang.org/AUTHORS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This source code was written by the Go contributors. | ||
# The master list of contributors is in the main Go distribution, | ||
# visible at http://tip.golang.org/CONTRIBUTORS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2011 The Go Authors. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following disclaimer | ||
in the documentation and/or other materials provided with the | ||
distribution. | ||
* Neither the name of Google Inc. nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This is Go Tour, an introduction to the Go programming language. | ||
|
||
Unless otherwise noted, the go-tour source files are distributed | ||
under the BSD-style license found in the LICENSE file. | ||
|
||
Contributions should follow the same procedure as for the Go project: | ||
http://golang.org/doc/contribute.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
This file lists topics that already exist (prefixed by *) and topics that | ||
should be added (prefixed by -). It should be kept up-to-date with tour.article. | ||
|
||
* Hello, 世界 | ||
* Go local | ||
* Packages | ||
* Imports | ||
- "Imported but not used" errors (later perhaps) | ||
* Exported names | ||
* Functions | ||
* Functions continued | ||
* Multiple results | ||
* Named results | ||
- Variables (single declaration first) | ||
* Variables | ||
* Variables with initializers | ||
* Short variable declarations | ||
* Basic types | ||
* Type inference | ||
* Type conversions | ||
* Zero values | ||
* Constants | ||
* Numeric Constants | ||
* For | ||
* For continued | ||
* For is Go's "while" | ||
* Forever | ||
* If | ||
* If with a short statement | ||
* If and else | ||
* Exercise: Loops and Functions | ||
* Structs | ||
* Struct Fields | ||
* Pointers | ||
* Struct Literals | ||
* The new function | ||
* Arrays | ||
* Slices | ||
* Slicing slices | ||
* Making slices | ||
* Append | ||
- Copy | ||
* Nil slices | ||
* Range | ||
* Range continued | ||
- The blank identifier | ||
- Slices of slices. | ||
* Exercise: Slices | ||
* Maps | ||
* Map literals | ||
* Map literals continued | ||
* Mutating Maps | ||
- Maps and range | ||
* Exercise: Maps | ||
* Function values | ||
* Function closures | ||
* Exercise: Fibonacci closure | ||
* Switch | ||
* Switch evaluation order | ||
* Switch with no condition | ||
- Complex numbers | ||
* Advanced Exercise: Complex cube roots | ||
- the type keyword | ||
* Methods and Interfaces | ||
* Methods | ||
* Methods continued | ||
* Methods with pointer receivers | ||
* Interfaces | ||
* Interfaces are satisfied implicitly | ||
- Interface assignment | ||
- Empty interface | ||
* Errors | ||
* Exercise: Errors | ||
* Web servers | ||
* Exercise: HTTP Handlers | ||
* Images | ||
* Exercise: Images | ||
* Exercise: Rot13 Reader | ||
- Sort (see sort package examples) | ||
- Exercise: Sort | ||
- Embedding | ||
- Exercise: Embedding (sort by different fields) | ||
- Type assertion | ||
- Type switch | ||
- Exercise: Visitor (walk a tree?) | ||
* Concurrency | ||
* Goroutines | ||
* Channels | ||
* Buffered Channels | ||
* Range and Close | ||
* Select | ||
* Default Selection | ||
* Exercise: Equivalent Binary Trees | ||
* Exercise: Equivalent Binary Trees | ||
* Exercise: Web Crawler | ||
- More language features | ||
* Defer | ||
- Panic and recover | ||
- init functions | ||
- Tools | ||
- Godoc | ||
- Gofmt | ||
* Where to Go from here... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
Translating the Tour | ||
|
||
A Tour of Go is a Go program that runs as a stand-alone web server or | ||
an App Engine app. The version available at tour.golang.org is run from | ||
App Engine. There are several localized versions of the tour, such as | ||
this Chinese translation, also running on App Engine: | ||
|
||
http://go-tour-zh.appspot.com | ||
|
||
The Tour contains a slide named "Go local", which lists several of | ||
these translations. If you are a native speaker of a language not on | ||
that list and have some experience with Go, please consider providing | ||
a translation of the Tour in your own language. | ||
|
||
To translate the tour: | ||
|
||
1. Translate the files in content/ | ||
2. Provide localized version for the UI strings in static/js/values.js | ||
3. Sign up to App Engine and create an app named go-tour-LL, | ||
where LL is the two-letter country code that applies best | ||
to your chosen language. (This shouldn't cost you anything; | ||
the Tour App usually runs inside App Engine's free quota.) | ||
4. Deploy your version of the Tour to that app. | ||
5. Announce to [email protected] | ||
|
||
The Tour content changes occasionally, and you should keep your | ||
translation up to date. To follow the development of the tour, | ||
subscribe to the go-tour-commits mailing list: | ||
|
||
https://groups.google.com/group/go-tour-commits | ||
|
||
All new commits to the go-tour repository are mailed there. | ||
|
||
Finally, if you have any questions about the Tour or Go, | ||
please mail [email protected]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
application: go-tour-zh | ||
version: 1 | ||
runtime: go | ||
api_version: go1 | ||
|
||
default_expiration: "7d" | ||
|
||
handlers: | ||
|
||
# Keep these static file handlers in sync with gotour/local.go. | ||
- url: /favicon.ico | ||
static_files: static/img/favicon.ico | ||
upload: static/img/favicon.ico | ||
- url: /content/img | ||
static_dir: content/img | ||
- url: /static | ||
static_dir: static | ||
application_readable: true | ||
|
||
- url: /(.*|list|lesson/.*|compile|fmt|script\.js) | ||
script: _go_app | ||
|
||
nobuild_files: (solutions|content)/.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
defaultcc: [email protected] | ||
contributors: http://go.googlecode.com/hg/CONTRIBUTORS |
Oops, something went wrong.