0%

Start Writing Production-Ready Go Code Fast

Thousands of developers and teams want to start taking advantage of Go, the powerful language used in projects ranging from Kubernetes to Docker and Vault. Go Fundamentals is specifically designed to get you up-to-speed fast, to leverage your existing knowledge of other languages, and to help you avoid common mistakes made by Go newcomers.

Based on author Mark Bates's and Cory LaNou's pioneering Gopher Guides training curricula, this guide will allow you to quickly understand and use Go syntax, core features, and idioms. Reflecting Go through version 1.18--which includes Go's exciting new support for generics--this guide prepares you to write robust, reliable, well-performing production code right from the outset.

  • Learn how Go manages packages, modules, and dependencies

  • Apply Go basics, such as variable declaration, types, and control flow

  • Work effectively with collection types, iteration, functions, structs, and pointers

  • Understand Go Slices and use them properly

  • Write idiomatic Go, using principles such as embedding and composition

  • Expertly use concurrency to improve code performance

  • Create proper tests to quickly identify and fix problems

  • Write simpler, better code with generics and interfaces

  • Take advantage of channels, context, sync primatives, and other advanced features

Go is lightweight, simple, and perfect for modern cloud-native and microservices development, which is why Go developers are in such high demand. With this guide and six months' experience with any modern programming language, you'll have what you need to leap into Go programming.

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Table of Contents

  1. Cover Page
  2. About This eBook
  3. Halftitle Page
  4. Title Page
  5. Copyright Page
  6. Pearson’s Commitment to Diversity, Equity, and Inclusion
  7. Dedication Page
  8. Contents
  9. Foreword
  10. Preface
  11. Acknowledgments
  12. About the Authors
  13. 1. Modules, Packages, and Dependencies
  14. 2. Go Language Basics
  15. 3. Arrays, Slices, and Iteration
  16. 4. Maps and Control Structures
  17. 5. Functions
  18. 6. Structs, Methods, and Pointers
  19. 7. Testing
  20. 8. Interfaces
  21. 9. Errors
  22. 10. Generics
  23. 11. Channels
  24. 12. Context
  25. 13. Synchronization
  26. 14. Working with Files
  27. Index
  28. Code Snippets