Go

Настройка бинарных файлов в Go с помощью тегов сборки — step-by-step Programming tutorial on Progressive Robot

Настройка бинарных файлов в Go с помощью тегов сборки

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

Read more
Información sobre init en Go — step-by-step Programming tutorial on Progressive Robot

Información sobre init en Go

En Go, la función init() predeterminada establece una porción de código que debe ejecutarse antes que cualquier otra parte de su paquete. Este código se ejecutará tan pronto como se [importe el…

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

Handling Errors in Go

Robust code needs to react correctly to unexpected circumstances like bad user input, faulty network connections, and failing disks. Error handling is the process of identifying when your program is in an unexpected state, and taking steps to record diagnostic information for later debugging.

Read more
Cómo escribir su primer programa en Go — step-by-step Programming tutorial on Progressive Robot

Cómo escribir su primer programa en Go

El programa “Hello, World!” es un clásico y una tradición reconocida en la programación computacional. Se trata de un primer programa sencillo y completo para principiantes y es una buena alternativa para garantizar que su entorno se configure de manera adecuada. Este…

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
Understanding Data Types in Go — step-by-step Programming tutorial on Progressive Robot

Understanding Data Types in Go

Data types specify the kinds of values that particular variables will store when you are writing a program. The data type also determines what operations can be performed on the data. In this article, we will go over the important data types native to the Go programming language. Understanding some basic data types will enable you to write clearer code that performs efficiently.

Read more
Создание вашей первой программы на Go — step-by-step Programming tutorial on Progressive Robot

Создание вашей первой программы на Go

“Hello, World!” — это классическая программа, традиционно используемая в компьютерном программировании. Это простая и полноценная первая программа для начинающих, и с ее помощью легко определить, что среда настроена правильно. В этом обучающем руководстве мы подробно рассмотрим…

Read more
How To Use Struct Tags in Go — step-by-step Programming tutorial on Progressive Robot

How To Use Struct Tags in Go

Struct tags are small pieces of metadata attached to fields of a struct that provide instructions to other Go code that works with the struct. When you read information from systems such as databases, or APIs, you can use struct tags to control how this information is assigned to the fields of a struct.

Read more
CHAT