Go

Использование пакета Flag в Go — step-by-step Programming tutorial on Progressive Robot

Использование пакета Flag в Go

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

Read more
Выполнение математических операций в Go с помощью операторов — step-by-step Programming tutorial on Progressive Robot

Выполнение математических операций в Go с помощью операторов

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

Read more
Como escrever seu primeiro programa em Go — step-by-step Programming tutorial on Progressive Robot

Como escrever seu primeiro programa em Go

O programa “Hello, World!” é um clássico tradicional, consagrado pelo tempo em programação de computadores. É um programa inicial, simples e completo para iniciantes e é uma boa maneira de garantir que seu ambiente esteja devidamente configurado. Este tutorial explicará sobre…

Read more
Entendendo mapas em Go — step-by-step Programming tutorial on Progressive Robot

Entendendo mapas em Go

A maioria das linguagens de programação modernas tem o conceito de um tipo dicionário ou um tipo hash. Esses tipos são comumente usados para armazenar dados em pares com uma chave que mapeia um valor. Em Go, o tipo de dados mapa é o tipo no qual a maioria dos programadores…

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

Understanding defer in Go

Go has many of the common control flow keywords found in other programming languages such as if, switch, for, etc. One keyword that isn’t found in most other programming languages is defer, and though it’s less common you’ll quickly see how useful it can be in your programs. In this article we will learn how to properly use the defer statement for cleaning up resources as well as several common mistakes that are made when using defer.

Read more
Написание условных выражений в Go — step-by-step Programming tutorial on Progressive Robot

Написание условных выражений в Go

Условные выражения являются частью каждого языка программирования. Условные выражения позволяют создавать код, который будет или не будет выполняться в зависимости от условий в программе на момент запуска. Когда мы полностью исполняем каждое выражение программы, мы не просим,…

Read more
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
Definir structs en Go — step-by-step Programming tutorial on Progressive Robot

Definir structs en Go

La capacidad para crear abstracciones en torno a detalles concretos es la mejor herramienta que un lenguaje de programación puede ofrecer a un desarrollador. Las “structs” permiten que los desarrolladores de Go describan el mundo en el que un programa de Go funciona. En vez de…

Read more
CHAT