How To Code in Go

How To Code in Go

by Mark Bates, Cory LaNou, Tim Raymond

New(0 reviews)
447 pages
2020
0 downloads
Language
pdf

About this book

This book is designed to introduce you to writing programs with the Go programming language. You'll learn how to write useful tools and applications that can run on remote servers, or local Windows, macOS, and Linux systems for development.The topics that it covers include how to:- Install and set up a local Go development environment on Windows, macOS, and Linux systems;- Design your programs with conditional logic, including switch statements to control program flow;- Define your own data structures and create interfaces to them for reusable code;- Write custom error handling functions;- Building and installing your Go programs so that they can run on different operating systems and different CPU architectures;- Using flags to pass arguments to your programs, to override default options.Each chapter can be read on its own or used as a reference, or you can follow the chapters from beginning to end. Feel free to jump to the chapter or chapters that best suits your purpose as you are learning Go with this book. This book is available under a Creative Commons Attribution-NonCommercial-ShareAlike license (CC BY-NC-SA), which means that you are free to copy, distribute, and modify it, as long as you credit the original author, don't use it for commercial purposes, and share any adaptations under the same license. If you enjoyed the book and would like to support the author, you can purchase a printed copy (hardcover or paperback) from official retailers.

Key Insights

  • Mastering the 'Write Once, Run Anywhere' paradigm by leveraging Go’s native support for cross-platform compilation across Windows, macOS, and Linux.
  • Architecting robust and scalable software through the strategic use of custom data structures and interfaces to ensure code reusability.
  • Developing production-ready applications by implementing sophisticated error handling and dynamic program control using command-line flags and conditional logic.

Sign in to leave a review and earn XP

Create Account

Community Reviews

No reviews yet. Be the first to review this book!