0% found this document useful (0 votes)
32 views

Introducing Go [Book]

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Introducing Go [Book]

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

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

https://www.oreilly.com/library/view/introducing-go/9781491941997/ 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
https://www.oreilly.com/library/view/introducing-go/9781491941997/ 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
https://www.oreilly.com/library/view/introducing-go/9781491941997/ 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

https://www.oreilly.com/library/view/introducing-go/9781491941997/ 6/10

You might also like