4/10/24, 5:38 PM Introducing Go [Book]
Introduction
SIGN IN TRY NOW
Who Should Read This Book
Navigating This Book
Online Resources
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
1. Getting Started
Machine Setup
Text Editors
The Terminal
Environment
Go
Your First Program
How to Read a Go Program
Exercises
2. Types
Numbers
Integers
Floating-Point Numbers
Example
Strings
Booleans
[Link] 3/10
4/10/24, 5:38 PM Introducing Go [Book]
Exercises
SIGN IN TRY NOW
3. Variables
How to Name a Variable
Scope
Constants
Defining Multiple Variables
An Example Program
Exercises
4. Control Structures
The for Statement
The if Statement
The switch Statement
Exercises
5. Arrays, Slices, and Maps
Arrays
Slices
append
copy
Maps
Exercises
6. Functions
Your Second Function
Variadic Functions
Closure
Recursion
[Link] 4/10
4/10/24, 5:38 PM Introducing Go [Book]
defer, panic, and recover
SIGN IN TRY NOW
panic and recover
Pointers
The * and & operators
new
Exercises
7. Structs and Interfaces
Structs
Initialization
Fields
Methods
Embedded Types
Interfaces
Exercises
8. Packages
The Core Packages
Strings
Input/Output
Files and Folders
Errors
Containers and Sort
Hashes and Cryptography
Servers
TCP
HTTP
[Link] 5/10
4/10/24, 5:38 PM Introducing Go [Book]
HTTP
RPC SIGN IN TRY NOW
Parsing Command-Line Arguments
Creating Packages
Documentation
Exercises
9. Testing
Exercises
10. Concurrency
Goroutines
Channels
Channel Direction
Select
Buffered Channels
An Example
Exercises
11. Next Steps
Study the Masters
Make Something
Team Up
A. Answers
Index
Show less
[Link] 6/10