diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-02-18 09:50:58 +0100 |
commit | c072558b90f1bbedc2022b0f30c8b1ac4712538e (patch) | |
tree | 67767591619e4bd8111fb05fac185cde94fb7378 /doc/go_tutorial.html | |
parent | 5859517b767c99749a45651c15d4bae5520ebae8 (diff) | |
download | golang-c072558b90f1bbedc2022b0f30c8b1ac4712538e.tar.gz |
Imported Upstream version 2011.02.15upstream/2011.02.15
Diffstat (limited to 'doc/go_tutorial.html')
-rw-r--r-- | doc/go_tutorial.html | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html index ece22036a..e3d946f8d 100644 --- a/doc/go_tutorial.html +++ b/doc/go_tutorial.html @@ -5,10 +5,13 @@ This document is a tutorial introduction to the basics of the Go programming language, intended for programmers familiar with C or C++. It is not a comprehensive guide to the language; at the moment the document closest to that is the <a href='/doc/go_spec.html'>language specification</a>. -After you've read this tutorial, you might want to look at +After you've read this tutorial, you should look at <a href='/doc/effective_go.html'>Effective Go</a>, -which digs deeper into how the language is used. -Also, slides from a 3-day course about Go are available: +which digs deeper into how the language is used and +talks about the style and idioms of programming in Go. +Also, slides from a 3-day course about Go are available. +Although they're badly out of date, they provide some +background and a lot of examples: <a href='/doc/GoCourseDay1.pdf'>Day 1</a>, <a href='/doc/GoCourseDay2.pdf'>Day 2</a>, <a href='/doc/GoCourseDay3.pdf'>Day 3</a>. @@ -258,11 +261,11 @@ of course you can change a string <i>variable</i> simply by reassigning it. This snippet from <code>strings.go</code> is legal code: <p> <pre> <!-- progs/strings.go /hello/ /ciao/ --> -11 s := "hello" -12 if s[1] != 'e' { os.Exit(1) } -13 s = "good bye" -14 var p *string = &s -15 *p = "ciao" +10 s := "hello" +11 if s[1] != 'e' { os.Exit(1) } +12 s = "good bye" +13 var p *string = &s +14 *p = "ciao" </pre> <p> However the following statements are illegal because they would modify |