0%

Write your own efficient, performant, and lightweight programs using Go

Quickly start developing your own Google Go programs using the practical information contained in this engaging resource. Social media personalities Tanmay Bakshi and Baheer Kamal show, step by step, how to develop custom applications that fully utilize Go’s lightweight runtime and concurrency features. Tanmay Teaches Go: The Ideal Language for Backend Developers teaches by doing. This book guides you through the development and programming processes and features detailed examples, code samples, and time-saving tips.

Inside, you’ll learn to:

  • Install Go on Windows, Linux, or macOS devices
  • Get up and running with writing your own Go apps
  • Define variables and use them in your programs
  • Work with statements, functions, loops, and arrays
  • Use Go modules to simplify program development
  • Utilize built-in and third-party packages
  • Write custom packages that fit your programming needs
  • Understand classic structures and algorithms
  • Improve performance using Go routines and concurrency
  • Import external code—even code not written in Go!


Table of Contents

  1. Cover
  2. Title Page
  3. Copyright Page
  4. About the Authors
  5. Contents
  6. Preface
  7. Acknowledgments
  8. 1 Introduction
    1. Why Go?
    2. What Are Go’s Design Goals?
    3. Where Can I Use Go?
    4. The Go Compiler and Runtime
    5. Concurrency
  9. 2 Quickstart
    1. Installing Go
    2. Using a System Package Manager
    3. Manually Installing a Precompiled Binary
    4. Building Go from Source
    5. Basic Go Concepts
    6. Conventional Project Structure
    7. A Go Primer—“Hello, World!”
    8. Variables
    9. if Statements and switch Statements
    10. Loops
    11. Functions
    12. Structures
    13. Interfaces
    14. Errors
  10. 3 Go Modules
    1. Using Built-in Packages
    2. Using Third-Party Packages
    3. Am I Prime?
    4. Building Your Own Packages
    5. Am I Prime? Part 2
  11. 4 Using Built-in Packages
    1. Common Data Structures and Algorithms
    2. Dijkstra’s Pathfinding
    3. Conway’s Game of Life
    4. Proof of Work
  12. 5 Concurrency
    1. Concurrency, Threads, and Parallelism
    2. Goroutines
    3. Channels
    4. select Statements
    5. Proof of Work: Part 2!
  13. 6 Interoperability
    1. Why Is Interoperability Important?
    2. Interoperating with C Code
    3. Interoperating with Swift
  14. Index
18.191.174.168