Account
Computer Science & Technology

Learning Go

An Idiomatic Approach to Real-World Go Programming

Get Learning Go, Jon Bodner's guide to writing idiomatic, concurrent, production-ready Go — instant PDF download for experienced developers.

  • 374pages
  • 15chapters
  • 2021publication year
  • Firstedition

This book is for you if you are

  • an experienced developer moving to Go from Java, Python, C#, or JavaScript
  • a backend engineer who needs to reason about goroutines, channels, and cancellation with confidence
  • a team lead standardizing a Go codebase on shared conventions and testing habits

Why this book

Learning Go is Jon Bodner's guide to writing idiomatic, production-ready Go instead of translating Java or Python habits into Go syntax. Published by O’Reilly Media in 2021, this first edition walks you through the language from primitive types and composite types up to interfaces, error handling, modules, and concurrency. It is written for developers who already program in another language and want to think in Go rather than around it.

What separates this book from a syntax reference is its insistence on why Go makes the choices it does. Each chapter moves from the mechanics of blocks, shadows, control structures, functions, and pointers to the conventions that working Go teams actually enforce in code review. The result is code that reads like Go, not like a translation.

  • Clear treatment of pointers, methods, and interfaces, the parts newcomers misread most.
  • A full chapter on concurrency, with goroutines and channels grounded in real coordination patterns.
  • Practical coverage of modules, packages, and imports for dependency management.
  • Guidance on writing tests and using the context package for cancellation and timeouts.
  • A closing tour of reflection, unsafe, cgo, and a forward-looking chapter on generics.

Concurrency gets the depth it deserves: goroutines, channels, and the patterns that keep them from deadlocking under load. You also get the standard library tour most tutorials skip, plus context and testing chapters that connect language features to services you actually ship.

Developers moving into Go from another language, backend engineers inheriting a Go codebase, and teams standardizing on the language get the most from it. Get your copy today.

What you'll learn

  • Set up a Go environment and toolchain from scratch
  • Declare primitive and composite types and understand how blocks and shadows affect scope
  • Design types, methods, and interfaces that follow Go's implicit satisfaction rules
  • Handle errors explicitly and add context to them without hiding the cause
  • Organize code with modules, packages, and imports
  • Write concurrent programs with goroutines and channels
  • Test Go code and control cancellation and timeouts with the context package

Not the right book for: people who have never programmed in any language

Questions about this book

Is Learning Go a good starting point for someone new to programming?

No. It assumes you already program in another language and focuses on making your Go idiomatic, so absolute beginners should learn programming fundamentals first.

Does this edition cover generics in Go?

Chapter 15 treats generics as a future direction of the language rather than day-to-day usage. The earlier chapters work with Go's interfaces, methods, and type system as presented in the book.

How does the book approach concurrency in Go?

Chapter 10 covers goroutines, channels, and the coordination patterns behind them. Chapter 12 then shows how context carries cancellation and timeouts across an application.

Does Learning Go cover testing and the standard library?

Yes. Chapter 13 walks through writing tests, and Chapter 11 tours the standard library so you can lean on it instead of pulling in extra dependencies.

Who is Jon Bodner's Learning Go written for?

It targets developers with experience in another language who need to read and write Go the way Go teams do, including interfaces, error handling, and modules.

Can I get it in another format?

Yes. You get the PDF right away. Need EPUB, Kindle, Word or any other format? Email support@ebooksonline.si with your order number and we send it.

Does it work on Kindle?

Yes. Email support@ebooksonline.si with your order number and we send you a Kindle-ready file.

How many times can I download it?

As many times as you like. Sign in to your account and download it again at any time.

What if the file does not work?

Contact us with your order number and we will fix it or refund you.

Contents

  1. 11. Setting Up Your Go Environmentp. 1
  2. 22. Primitive Types and Declarationsp. 17
  3. 33. Composite Typesp. 35
  4. 44. Blocks, Shadows, and Control Structuresp. 61
  5. 55. Functionsp. 87
  6. 66. Pointersp. 107
  7. 77. Types, Methods, and Interfacesp. 129
  8. 88. Errorsp. 161
  9. 99. Modules, Packages, and Importsp. 177
  10. 1010. Concurrency in Gop. 203
  11. 1111. The Standard Libraryp. 233
  12. 1212. The Contextp. 255
  13. 1313. Writing Testsp. 271
  14. 1414. Here There Be Dragons: Reflect, Unsafe, and Cgop. 299
  15. 1515. A Look at the Future: Generics in Gop. 325

Details

Author
Jon Bodner
Publisher
O’Reilly Media
Edition
First edition, 2021
ISBN
9781492077213
Pages
374
Language
English
Formats
PDF (EPUB, Kindle or any other format on request)
File size
7.33 MB
Licence
Personal use, keep forever

Jon Bodner

Buy with confidence

If your file does not open or download, we fix it or refund you. Read the refund policy.

More in Computer Science & Technology

See all

Laravel

Matt Stauffer

PDF · 544 pages

$14.99 Regular price $56.86 −74%

You save $41.87

Add to cart

Big C++

Cay Horstmann, Timothy A. Budd

PDF · 1090 pages

$19.99 Regular price $118.68 −83%

You save $98.69

Add to cart
Cover of 10-Minute Focus by Daniel Walter

Get a free ebook

Join the list and get 10-Minute Focus free, plus a short note when new books arrive.

Your cart

No products in the cart.

Subjects

More

Look inside

Sample