From c072558b90f1bbedc2022b0f30c8b1ac4712538e Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Fri, 18 Feb 2011 09:50:58 +0100 Subject: Imported Upstream version 2011.02.15 --- doc/go_tutorial.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'doc/go_tutorial.html') 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 language specification. -After you've read this tutorial, you might want to look at +After you've read this tutorial, you should look at Effective Go, -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: Day 1, Day 2, Day 3. @@ -258,11 +261,11 @@ of course you can change a string variable simply by reassigning it. This snippet from strings.go is legal code:

 
-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"
 

However the following statements are illegal because they would modify -- cgit v1.2.3