A Tour of Go

This is a useful guide for beginners with simple examples to try out on each page.

Basics 1: Random Number
Basics 2: Square Root
Basics 3: Pi and Exported Names
Basics 4: Functions and Adding Numbers
Basics 5: shorthand function signature
Basics 6: Swap Function
Basics 7: Named return values
Basics 8: Variables
Basics 9: Variables with initializers
Basics 10: short variable declarations
Basics 11: Basic Types
Basics 12: Zero values
Basics 13: Type conversions
Basics 14: Type inference
Basics 15: Constants
Basics 16: Numeric Constants

Flow Control

Flow Control 1: For
Flow Control 2: For Shorthand
Flow Control 3: For is Go’s “while”
Flow Control 4: Forever
Flow Control 5: if
Flow Control 6: if with a short statement
Flow Control 7: if and else
Flow Control 8: Exercise – loops and functions
Flow Control 9: switch
Flow Control 10: Switch evaluation order
Flow Control 11: Switch with no condition
Flow Control 12: Defer
Flow Control 13: Stacking defers

More Types

1: Pointers
2: Structs
3: Struct Fields
4: Pointers to structs
5: Struct Literals

6: Arrays
7: Slices
8: Slices are like references to arrays
9: Slice literals
10: Slice defaults
11: Slice length and capacity
12: Nil slices
13: Creating a slice with make
14: Slices of slices
15: Appending to a slice
16: Range
17: Range continued
18: Exercise – Slices
19: Maps
20: Map literals
21: Map literals continued
22: Mutating Maps
23: Exercise Maps
24: Function values
25: Function closures
26: Fibonacci closure

Methods

1: Methods

Concurrency

1: Goroutines
2: Channels

11: Where to Go from here…

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s