Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
1Activity

Table Of Contents

Course Outline
Today’s Outline
Motivation
Why a new language?
To put it in a positive way
Resources
Status: Compilers
Basics
Time for some code
Language basics
Lexical structure
Literals
Syntax overview
Semicolons
Numeric types
Bool
String
Expressions
Go vs. C expressions
Examples
Numeric conversions
Constants
Constant Expressions
Consequences of ideal numbers
Declarations
Var
Distributing var
The := "short declaration"
Const
Iota
Type
New
Assignment
Control structures
For
Switch details
Switch
Break, continue, etc
Functions
The blank identifier
Functions with result variables
The empty return
What was that about zero?
Defer
One function invocation per defer
Tracing with defer
Args evaluate now, defer later
Function literals
Function literals are closures
Program construction
Packages
Source file structure
A single-file package
main and main.main
The os package
Global and package scope
Initialization
Initialization example
Package and program construction
Building the fmt package
Testing
An example test
Testing: gotest
An example benchmark
Benchmarking: gotest
Libraries
A little more about fmt
Library documentation
Exercise
Exercise: Day 1
Next lesson
0 of .
Results for:
No results containing your search query
P. 1
Go Course Day 1

Go Course Day 1

Ratings: (0)|Views: 4 |Likes:
Published by shux4349588

More info:

Published by: shux4349588 on Nov 02, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/02/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 36 are not shown in this preview.
You're Reading a Free Preview
Pages 40 to 76 are not shown in this preview.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->