Go

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

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

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

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

Cómo manejar panics en Go

Los errores que un programa encuentra se dividen en dos categorías generales: los que el programador anticipa y los que no anticipa. La interfaz error que abarcamos en nuestros dos artículos anteriores sobre el [manejo de…

Read more
How To Format Strings in Go — step-by-step Programming tutorial on Progressive Robot

How To Format Strings in Go

In this tutorial, we’ll go over some of the ways we can work with Go strings to make sure that all output text is formatted correctly. Topics we will cover include: quotes, apostrophes, multiple lines, escape characters, and raw strings.

Read more
How to Use a Private Go Module in Your Own Project — step-by-step Programming tutorial on Progressive Robot

How to Use a Private Go Module in Your Own Project

Many Go modules are open-source, which means they can be freely accessed and used. However, sometimes you need to make a module private. In this tutorial, you will publish a private Go module, set up authentication to access a private module, and use a private Go module in a project.

Read more
How To Use Martini to Serve Go Applications Behind an Nginx Server on Ubuntu — step-by-step Linux tutorial on Progressive Robot

How To Use Martini to Serve Go Applications Behind an Nginx Server on Ubuntu

Web frameworks allow you to quickly program web applications without having to worry about the underlying glue that holds everything together. Martini is a modern web framework for the Go programming language that makes it easy to write web applications. In this guide, we will discuss how to create a Martini application and use Nginx as a reverse proxy to serve it requests.

Read more
Como usar funções variadic em Go — step-by-step Programming tutorial on Progressive Robot

Como usar funções variadic em Go

Uma função variadic é uma função que aceita zero, um, ou mais valores como um único argumento. Embora as funções variadic não sejam o caso comum, elas podem ser usadas para tornar seu código mais limpo e mais legível. As funções variadic são mais comuns do que parecem. A…

Read more
CHAT