Computer ScienceScience & MathematicsEconomics & FinanceBusiness & ManagementPolitics & GovernmentHistoryPhilosophy

How To Code in Go

by Mark Bates, Cory LaNou, Tim Raymond

How To Code in Go

Subscribe to new books via dBooks.org telegram channel

Join
DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

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 open book is licensed under a Creative Commons License (CC BY-NC-SA). You can download How To Code in Go ebook for free in PDF format (3.1 MB).

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

Book Details

Title
How To Code in Go
Subject
Computer Science
Publisher
DigitalOcean
Published
2020
Pages
447
Edition
1
Language
English
ISBN13 Digital
9780999773062
ISBN10 Digital
0999773062
PDF Size
3.1 MB
License
CC BY-NC-SA

Book Hashtags

Related Books

How To Code in Node.js
Node.js is a popular open-source runtime environment that can execute JavaScript outside of the browser. The Node runtime is commonly used for back-end web development, leveraging its asynchronous capabilities to create networking applications and web servers. Node is also a popular choice for building command line tools. In this book, you will ...
How To Code in React.js
This open book is an introduction to React that works from the foundations upward. Each chapter takes you a little deeper into the React ecosystem, building on your previous knowledge. Along the way, you'll learn how to maintain internal state, pass information between parts of an application, and explore different options for styling your app...
How to Code in HTML5 and CSS3
"How to Code in HTML5 and CSS3" is a free e-book about making websites in HTML5 and CSS for absolute beginners. It doesn't require any experience in IT to start. The aim of this book is to show the art of making websites using a plain language which is full of practical analogies. After reading over 100 pages you will get to know bas...
How To Code in Python 3
Extremely versatile and popular among developers, Python is a good general-purpose language that can be used in a variety of applications. For those with an understanding of English, Python is a very humanreadable programming language, allowing for quick comprehension. Because Python supports multiple styles including scripting and object-oriented ...
How To Build a Website with HTML
If you are interested in learning how to build and design websites, Hyper Text Markup Language (HTML) is a great place to start. This project-based tutorial series will introduce you to HTML and its methods by building a personal website using our demonstration site (below) as a model. Once you learn the basics, you will know how change the website...
Managing Risk and Information Security
Examine the evolving enterprise security landscape and discover how to manage and survive risk. While based primarily on the author's experience and insights at major companies where he has served as CISO and CSPO, the book also includes many examples from other well-known companies and provides guidance for a management-level audience. Man...