ENGLISH

An Introduction to Programming in Go

Book information

Publisher
CreateSpace Independent Publishing Platform
Year
2012
ISBN
1478355824, 9781478355823
Language
english
Format
PDF
Filesize
12 MB (12171137 bytes)
Pages
\165
Time added
2016-08-11 13:02:45

Description

This book is a short, concise introduction to computer programming using the language Go. Designed by Google, Go is a general purpose programming language with modern features, clean syntax and a robust well-documented common library, making it an ideal language to learn as your first programming language.Contents1 Getting Started 11.1 Files and Folders 21.2 The Terminal 51.3 Text Editors 91.4 Go Tools 132 Your First Program 152.1 How to Read a Go Program 173 Types 233.1 Numbers 243.2 Strings 293.3 Booleans 314 Variables 354.1 How to Name a Variable 394.2 Scope 404.3 Constants 434.4 Defining Multiple Variables 444.5 An Example Program 455 Control Structures 475.1 For 485.2 If 515.3 Switch 556 Arrays, Slices and Maps 586.1 Arrays 586.2 Slices 646.3 Maps 677 Functions 767.1 Your Second Function 777.2 Returning Multiple Values 827.3 Variadic Functions 827.4 Closure 847.5 Recursion 867.6 Defer, Panic & Recover 888 Pointers 928.1 The * and & operators 938.2 new 949 Structs and Interfaces 979.1 Structs 989.2 Methods 1019.3 Interfaces 10410 Concurrency 10810.1 Goroutines 10810.2 Channels 11111 Packages 12011.1 Creating Packages 12111.2 Documentation 12412 Testing 12713 The Core Packages 13213.1 Strings 13213.2 Input / Output 13413.3 Files & Folders 13513.4 Errors 14013.5 Containers & Sort 14113.6 Hashes & Cryptography 14413.7 Servers 14713.8 Parsing Command Line Arguments 15513.9 Synchronization Primitives 15614 Next Steps 15914.1 Study the Masters 15914.2 Make Something 16014.3 Team Up 161

Similar books