Go

How To Build Go Executables for Multiple Platforms on Ubuntu 20.04 — step-by-step Linux tutorial on Progressive Robot

How To Build Go Executables for Multiple Platforms on Ubuntu 20.04

The Go programming language comes with a rich toolchain that makes obtaining packages and building executables incredibly easy. One of Go’s most powerful features is the ability to cross-build executables for any Go-supported foreign platform. This makes testing and packaging your software easy and accessible.

Read more
Использование функций с переменным количеством аргументов в Go — step-by-step Programming tutorial on Progressive Robot

Использование функций с переменным количеством аргументов в Go

Функция с переменным количеством аргументов — это функция, которая принимает ноль, одно или больше значений в качестве одного аргумента. Хотя функции с переменным количеством аргументов встречаются редко, их можно использовать, чтобы сделать код более чистым и удобным для…

Read more
How To Code in Go eBook — step-by-step Programming tutorial on Progressive Robot

How To Code in Go eBook

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.

Read more
Defining Methods in Go — step-by-step Programming tutorial on Progressive Robot

Defining Methods in Go

Methods are Go functions that operate on instances of a specific type. Methods allow you to communicate not only what the data is, but also how that data should be used. Methods are the core concept that makes Go interfaces possible.

Read more
How To Use the Flag Package in Go — step-by-step Programming tutorial on Progressive Robot

How To Use the Flag Package in Go

In this tutorial you’ll explore various ways to use the `flag` package to build different kinds of command-line utilities. You’ll use a flag to control program output, introduce positional arguments where you mix flags and other data, and then implement sub-commands.

Read more
Tratamento de erros em Go — step-by-step Programming tutorial on Progressive Robot

Tratamento de erros em Go

Um código robusto precisa reagir de forma correta a circunstâncias inesperadas, como erros de entrada do usuário, problemas de conexões de rede e falhas de discos. Tratamento de erro é o processo de identificar quando seu programa se encontra em um estado inesperado e adotar medidas para…

Read more
Información sobre GOPATH — step-by-step Programming tutorial on Progressive Robot

Información sobre GOPATH

Este artículo le servirá como guía para comprender GOPATH, su funcionamiento y su configuración. Este paso es crucial para configurar un entorno de desarrollo de Go, así como para comprender cómo se ubican, instalan y construyen archivos de origen en Go. En este artículo,…

Read more
Creating Custom Errors in Go — step-by-step Programming tutorial on Progressive Robot

Creating Custom Errors in Go

When communicating more complicated error information to your users, or to your future self when debugging, sometimes these two mechanisms are not enough to adequately capture and report what has happened. To convey this more complex error information we can implement the standard library interface type, `error`, to get more functionality.

Read more
How to Use a Private Go Module in Your Own Project — step-by-step Programming tutorial on Progressive Robot

How to Use a Private Go Module in Your Own Project

Many Go modules are open-source, which means they can be freely accessed and used. However, sometimes you need to make a module private. In this tutorial, you will publish a private Go module, set up authentication to access a private module, and use a private Go module in a project.

Read more
CHAT