Go

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
Customizing Go Binaries with Build Tags — step-by-step Programming tutorial on Progressive Robot

Customizing Go Binaries with Build Tags

In Go, a build tag, or a build constraint, is an identifier added to a piece of code that determines when the file should be included in a package during the build process. This allows you to build different versions of your Go application from the same source code and to toggle between them in a fast and organized manner. In this article, you will use build tags in Go to generate different executable binaries that offer Free, Pro, and Enterprise feature sets of a sample application.

Read more
Lidando com a função Panics em Go — step-by-step Programming tutorial on Progressive Robot

Lidando com a função Panics em Go

Os erros que um programa encontra se enquadram em duas grandes categorias: a dos erros que o programador previu e a dos que ele não previu. A interface de error – que abordamos nos dois artigos anteriores sobre [Como lidar com…

Read more
How To Code in Go eBook — step-by-step Programming tutorial on Progressive Robot

How To Code in Go eBook

This book is designed to introduce you to writing programs with the Go programming language. You’ll learn how to write useful tools and applications that can run on remote servers, or local Windows, macOS, and Linux systems for development.

Read more
CHAT