Go

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
Como escrever comentários em Go — step-by-step Programming tutorial on Progressive Robot

Como escrever comentários em Go

Comentários são linhas que existem em programas de computador que os programas de compilação e interpretação ignoram. A inclusão de comentários nos programas torna o código mais legível para humanos, uma vez que fornece informações ou explicações sobre o que cada parte de um…

Read more
Cómo configurar y invocar funciones en Go — step-by-step Programming tutorial on Progressive Robot

Cómo configurar y invocar funciones en Go

Una función es una sección de código que, una vez definida, se puede volver a utilizar. Las funciones se utilizan para facilitar más la comprensión de su código mediante su división en tareas pequeñas y comprensibles que se pueden utilizar más de una vez en su…

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

Cómo escribir comentarios en Go

Los comentarios son líneas que existen en los programas informáticos y que los compiladores e intérpretes ignoran. Incluir comentarios en programas hace que el código sea más legible para los seres humanos, ya que proporciona información o explicaciones sobre lo que cada…

Read more
Использование ldflags для установки информации о версиях в приложениях Go — step-by-step Programming tutorial on Progressive Robot

Использование ldflags для установки информации о версиях в приложениях Go

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

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

Understanding Package Visibility in Go

Visibility in the Go programming language means the file space from which a package or other construct can be referenced. In this article, you will learn how to control package visibility, as well as how to protect parts of your code that should only be used inside your package. To do this, we will create a basic logger to log and debug messages, using packages with varying degrees of item visibility.

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

Использование тегов структур в Go

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

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

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

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

Read more
CHAT