Gerencie suas versões Go com GVM

Ganhe produtividade gerenciando as versões Go na sua máquina de forma simples usando o GVM

Image for post
Image for post

Ambiente

Instalando

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)
Image for post
Image for post
Retorno no terminal que será exibido após executar o comando anterior
Image for post
Image for post
Dependências faltando
Image for post
Image for post
Versão instalada

Instalando Go

gvm install go1.10 -B
gvm install go1.11 -B
gvm use go1.11 --default 
gvm list
Image for post
Image for post
Versões instaladas do Go
#GOPATH
~/.gvm/pkgsets/go1.11/global
#GOROOT
~/.gvm/gos/go1.11

Validando

package main

import "fmt"

func main() {
fmt.Printf("hello, world\n")
}
Image for post
Image for post

Conclusão



Responsive

Software Engineering Blog & Programming Tutorials

Marco Paulo Ollivier

Written by

|| Software Engineer @nubank || Gopher || @gopheriomeetup organizer || @VascodaGama fan /+/ || Carioca da Gema +5521 || Trying to be a physicist

Responsive

Software Engineering Blog & Programming Tutorials

Marco Paulo Ollivier

Written by

|| Software Engineer @nubank || Gopher || @gopheriomeetup organizer || @VascodaGama fan /+/ || Carioca da Gema +5521 || Trying to be a physicist

Responsive

Software Engineering Blog & Programming Tutorials

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade