Go

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

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

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

Read more
Cómo escribir instrucciones condicionales en Go — step-by-step Programming tutorial on Progressive Robot

Cómo escribir instrucciones condicionales en Go

Las instrucciones condicionales son parte de cada lenguaje de programación. Con las instrucciones condicionales, podemos disponer de código que a veces se ejecuta y que en otros momentos no lo hace, según las condiciones del programa en ese momento. Cuando ejecutamos por…

Read more
How To Write Your First Program in Go — step-by-step Programming tutorial on Progressive Robot

How To Write Your First Program in Go

The “Hello, World!” program is a classic and time-honored tradition in computer programming. It’s a simple and complete first program for beginners, and it’s a good way to make sure your environment is properly configured. This tutorial will walk you through creating this program in Go.

Read more
Типы данных в Go — step-by-step Programming tutorial on Progressive Robot

Типы данных в Go

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

Read more
Видимость пакетов в Go — step-by-step Programming tutorial on Progressive Robot

Видимость пакетов в Go

При создании пакета в Go конечная цель обычно заключается в том, чтобы сделать пакет доступным для других разработчиков, либо в пакетах более высокого порядка, либо в целых программах. При [импорте…

Read more
Using ldflags to Set Version Information for Go Applications — step-by-step Programming tutorial on Progressive Robot

Using ldflags to Set Version Information for Go Applications

In this tutorial, you will use the Go flag -ldflags to change the value of variables at build time and introduce your own dynamic information into a binary, using a sample application that prints version information to the screen. This passes a flag to the underlying Go toolchain linker, cmd/link, that allows you to change the values of imported packages at build time from the command line.

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

Defining Structs in Go

Structs allow storing data from several variables in a single entity with one name. They allow Go developers to describe the world in which a Go program operates. Instead of reasoning about strings describing a `Street`, `City`, or a `PostalCode`, structs allow us to instead talk about an `Address`. They also serve as a natural nexus for documentation. Structs can be defined and used in a few different ways, which are discussed in this tutorial.

Read more
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
CHAT