Go

Understanding Arrays and Slices in Go — step-by-step Programming tutorial on Progressive Robot

Understanding Arrays and Slices in Go

This article will cover the array and slice data structures in the Go Programming language, which will provide you with the necessary information to make the appropriate choice when choosing between them. You’ll also review the most common ways to declare and work with both arrays and slices. The tutorial will first provide a description of arrays and how to manipulate them, followed by an explanation of slices and how they differ.

Read more
Understanding init in Go — step-by-step Programming tutorial on Progressive Robot

Understanding init in Go

In Go, the predefined init() function sets off a piece of code to run before any other part of your package. This code will execute as soon as the package is imported, and can be used when you need your application to initialize in a specific state. In this tutorial, you’ll learn how init() is used for the setup and initialization of specific package variables, one time computations, and the registration of a package for use with another package.

Read more
Обработка паник в Go — step-by-step Programming tutorial on Progressive Robot

Обработка паник в Go

Ошибки, возникающие в программе, относятся к двум широким категориям: ожидаемые программистом ошибки и ошибки, возникновения которых не ожидалось. Интерфейс error, который мы изучили в двух предыдущих статьях, посвященных [обработке…

Read more
Cómo crear bucles for en Go — step-by-step Programming tutorial on Progressive Robot

Cómo crear bucles for en Go

En el ámbito de la programación informática, un bucle es una estructura de código que forma un ciclo para ejecutar parte de un código de forma repetida, a menudo hasta que se cumple una condición. Usar bucles en el terreno de la programación informática le permite…

Read more
CHAT