How To Code in Go



Download free course How To Code in Go, pdf file on 447 pages by Mark Bates, Cory LaNou, Tim Raymond.
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.

Table of contents

  • How To Install Go and Set Up a Local Programming Environment on Ubuntu 18.04
  • How To Install Go and Set Up a Local Programming Environment on macOS
  • How To Install Go and Set Up a Local Programming Environment on Windows 10
  • How To Write Your First Program in Go
  • Understanding the GOPATH
  • How To Write Comments in Go
  • Understanding Data Types in Go
  • An Introduction to Working with Strings in Go
  • How To Format Strings in Go
  • An Introduction to the Strings Package in Go
  • How To Use Variables and Constants in Go
  • How To Convert Data Types in Go
  • How To Do Math in Go with Operators
  • Understanding Boolean Logic in Go
  • Understanding Maps in Go
  • Understanding Arrays and Slices in Go
  • Handling Errors in Go
  • Creating Custom Errors in Go
  • Handling Panics in Go
  • Importing Packages in Go
  • How To Write Packages in Go
  • Understanding Package Visibility in Go
  • How To Write Conditional Statements in Go
  • How To Write Switch Statements in Go
  • How To Construct For Loops in Go
  • Using Break and Continue Statements When Working with Loops in Go
  • How To Define and Call Functions in Go
  • How To Use Variadic Functions in Go
  • Understanding defer in Go
  • Understanding init in Go
  • Customizing Go Binaries with Build Tags
  • Understanding Pointers in Go
  • Defining Structs in Go
  • Defining Methods in Go
  • How To Build and Install Go Programs
  • How To Use Struct Tags in Go
  • How To Use Interfaces in Go
  • Building Go Applications for Different Operating Systems and Architectures
  • Using ldflags to Set Version Information for Go Applications
  • How To Use the Flag Package in Go
Pages447
Size3.1 MB
File typePDF
Downloads209
Created2022-02-02
LicenseCC BY-NC-SA
Author(s) Mark Bates, Cory LaNou, Tim Raymond
Cover of How To Code in Go

Download

  • Coding with Minecraft: Learn to Code by Programming Robots in Minecraft!

    A hands-on introduction to coding that teaches you how to program bots to do cool things in the game you love - Minecraft! This book takes the robotic "turtle" method, and extends it to the 3D, interactive world of Minecraft....

  • AutoCAD 3D

    Download a complete pdf tutorial about AutoCD 3D ,a free training document under 264 pages By Kristen S. Kurland...

  • Handbook of Vascular Biometrics

    Download free course Handbook of Vascular Biometrics, pdf file on 535 pages by Andreas Uhl, Christoph Busch, Sébastien Marcel, Raymond Veldhuis....

  • Raspberry Pi Tutorial

    This is a free Raspberry PI PDF tutorial in 12 chapters and 43 pages. In this guide you’ll find everything you need to know about the Raspberry Pi computer, its background, purpose, system specs, the software it runs and the amazing things it is capable of. ...

  • Objective-C Notes for Professionals

    Download free course Objective-C Notes for Professionals, pdf file on 128 pages by Stack Overflow Community....

  • Software for Exascale Computing - SPPEXA 2016-2019

    Download free course Software for Exascale Computing - SPPEXA 2016-2019, pdf file on 624 pages by Hans-Joachim Bungartz, Severin Reiz, Benjamin Uekermann, Philipp Neumann, Wolfgang E. Nagel....

  • MATLAB Notes for Professionals

    Download free course MATLAB Notes for Professionals, pdf file on 181 pages by Stack Overflow Community....

  • Semantic Systems. In the Era of Knowledge Graphs

    Download free course Semantic Systems. In the Era of Knowledge Graphs, pdf file on 141 pages by Eva Blomqvist, Paul Groth, Victor de Boer, Tassilo Pellegrini, Mehwish Alam, Tobias Käfer, Peter Kieseberg, Sabrina Kirrane, Albert Meroño-Peñuela, Harshvardhan J. Pandit....

  • Arduino : a quick guide

    This tutorial is a quick guide about Arduino ,free pdf courses under 37 pages designed to beginners.You will learn how to interfacing a Joystick ,playing melody and reading Potentiometer with the microcontroller of Arduino technology....

  • Proofs and Concepts: The Fundamentals of Abstract Mathematics

    This undergraduate textbook provides an introduction to proofs, logic, sets, functions, and other fundamental topics of abstract mathematics. It is designed to be the textbook for a bridge course that introduces undergraduates to abstract mathematics, but it is also suitable for independent study by...