liveBook · Manning

Go keyword

The Go go keyword starts a function or method call as a goroutine, allowing it to execute concurrently with the caller.

How 3 Manning books explain it

Go in Practice, Second Edition

The Go keyword is a language construct that starts a function call as a goroutine while allowing the caller to continue immediately.

How it is used
Starts function calls concurrently so callers can continue, including background input processing and per-connection server handling.
How deep it goes
Defines the call syntax and works through task lifetime, server use, and panic recovery; defers scheduling internals.
Examples
Uses a timed terminal echo, a concurrent counting function, and per-connection TCP handlers.
What you can do after
Apply it via Go’s `go` statement to launch concurrent tasks while accounting for program lifetime and handler panics.

Read how Go in Practice, Second Edition explains go keyword →

Learn Concurrent Programming with Go

The Go keyword go starts a function invocation as a goroutine without making the caller wait for its completion.

How it is used
Launches function calls asynchronously to replace sequential work with concurrent goroutines.
How deep it goes
Defines asynchronous invocation through runnable work and shared-memory examples, while deferring proper completion coordination and race handling.
Examples
Uses five timed work calls, a shared countdown pointer, and 31 concurrent web-page letter counters.
What you can do after
Apply it via Go's go keyword to launch independent function calls concurrently while accounting for program termination and unsafe shared updates.

Read how Learn Concurrent Programming with Go explains go keyword →

Go in Action, Second Edition

The Go language keyword that starts a function executing as a goroutine.

How it is used
Uses goroutines to keep network requests from blocking other work.
How deep it goes
Explains launch syntax, runtime scheduling, and program lifetime, while deferring reliable synchronization techniques.
Examples
Demonstrates concurrent RSS feed fetching with anonymous and named functions.
What you can do after
Apply Go's go keyword to launch feed-fetching functions concurrently and diagnose premature program exit.

Read how Go in Action, Second Edition explains go keyword →

Also covered in

What to know first

Related concepts

Questions about go keyword

What is go keyword?

The Go go keyword starts a function or method call as a goroutine, allowing it to execute concurrently with the caller.

Which Manning books explain go keyword?

Go in Practice, Second Edition, Learn Concurrent Programming with Go and Go in Action, Second Edition.

What should I know before learning go keyword?

Manning books that teach go keyword usually introduce Go and thread first.

What is the difference between go keyword and sequential processing?

The Go go keyword starts a function or method call as a goroutine, allowing it to execute concurrently with the caller. Sequential processing is the execution of operations one after another in a defined order, without overlapping their execution.

What is go keyword a kind of?

Go keyword is a kind of keyword. A language-defined word or token with a predefined syntactic or semantic role, which may be restricted from use as an ordinary identifier.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.