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
2Activity

Table Of Contents

2 Basics
Hello World
Compiling and running code
Variables, types and keywords
Operators and built-in functions
Go keywords
Control structures
Built-in functions
Arrays, slices and maps
Exercises
Q2. (1) For-loop
Q3. (1) FizzBuzz
Q4. (1) Strings
Q5. (4) Average
Answers
3 Functions
Scope
Listing 3.5. Scope when calling functions from functions
Multiple return values
Named result parameters
Deferred code
Listing 3.10. Access return values within defer
Variadic parameters
Functions as values
Panic and recovering
Q6. (4) Average
Q8. (4) Scope
Q9. (5) Stack
Q10. (5) Var args
Q14. (5) Bubble sort
Listing 3.15. A function with variable number of arguments
4 Packages
Building a package
Identifiers
Documenting packages
Testing packages
Useful packages
Q15. (2) Stack as package
Q16. (7) Calculator
5 Beyond the basics
Allocation
Defining your own types
Conversions
Q18. (6) Pointers
Q19. (6) Linked List
6 Interfaces
Listing 6.1. Defining a struct and methods on it
Listing 6.3. A function with a empty interface argument
Listing 6.4. Failing to implement an interface
Methods
Listing 6.5. Failure extending built-in types
Listing 6.6. Failure extending non-local types
Interface names
A sorting example
Introspection
7 Concurrency
More on channels
Q25. (4) Channels
Q26. (7) Fibonacci II
8 Communication
Files
Command line arguments
Executing commands
Networking
Netchan: networking and channels
Q27. (8) Processes
A Colophon
Contributors
B Index
0 of .
Results for:
No results containing your search query
P. 1
LearningGoLang

LearningGoLang

Ratings: (0)|Views: 111 |Likes:
Published by Akahane Go

More info:

Published by: Akahane Go on Mar 05, 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

09/15/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 83 are not shown in this preview.
You're Reading a Free Preview
Pages 87 to 113 are not shown in this preview.
You're Reading a Free Preview
Page 117 is not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

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)//-->