aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-02-14 11:25:00 -0800
committerRob Pike <r@golang.org>2011-02-14 11:25:00 -0800
commit7115eef6beb4f359245d2770bc6b4c6aa0ae25e1 (patch)
treef3a1a634df30d8889fe68cb59f67b92112a2f07d
parent858972c3f9cab92f13b1cdac823d8187df1eb73d (diff)
downloadgo-7115eef6beb4f359245d2770bc6b4c6aa0ae25e1.tar.gz
go-7115eef6beb4f359245d2770bc6b4c6aa0ae25e1.zip
tutorial: rework the introduction to give "Effective Go"
prominence and downplay the course notes. R=golang-dev, gri, rsc CC=golang-dev https://golang.org/cl/4190041
-rw-r--r--doc/go_tutorial.html19
-rw-r--r--doc/go_tutorial.txt9
2 files changed, 17 insertions, 11 deletions
diff --git a/doc/go_tutorial.html b/doc/go_tutorial.html
index ece22036ae..e3d946f8d0 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 := &quot;hello&quot;
-12 if s[1] != 'e' { os.Exit(1) }
-13 s = &quot;good bye&quot;
-14 var p *string = &amp;s
-15 *p = &quot;ciao&quot;
+10 s := &quot;hello&quot;
+11 if s[1] != 'e' { os.Exit(1) }
+12 s = &quot;good bye&quot;
+13 var p *string = &amp;s
+14 *p = &quot;ciao&quot;
</pre>
<p>
However the following statements are illegal because they would modify
diff --git a/doc/go_tutorial.txt b/doc/go_tutorial.txt
index 5eea3c980b..2b2a0cda1e 100644
--- a/doc/go_tutorial.txt
+++ b/doc/go_tutorial.txt
@@ -6,10 +6,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>.