Go

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
Entendendo matrizes e fatias em Go — step-by-step Programming tutorial on Progressive Robot

Entendendo matrizes e fatias em Go

Na linguagem Go, matrizes e fatias são estruturas de dados que consistem em uma sequência ordenada de elementos. Essas coleções de dados são ótimas para serem usadas quando você quiser trabalhar com muitos valores relacionados….

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

Entendendo o init em Go

Em Go, a função pré-definida init() faz com que uma parte do código execute antes de qualquer outra parte do seu pacote. Esse código vai executar assim que o pacote for importado e poderá ser usado…

Read more
Entendendo o GOPATH — step-by-step Programming tutorial on Progressive Robot

Entendendo o GOPATH

Este artigo irá orientá-lo para entender o que é o GOPATH, como ele funciona e como configurá-lo. Este é um passo crucial para configurar um ambiente de desenvolvimento em Go, além de entender como o Go encontra, instala e compila arquivos fonte. Neste artigo, usaremos o…

Read more
CHAT