Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao tentar instalar o Gin

Estou usando o ubuntu 22.04, e está dando esse erro:

elton in alura/go/gin-api-rest ❯ go get -u github.com/gin-gonic/gingithub.com/gin-gonic/gin imports github.com/gin-gonic/gin/binding imports github.com/pelletier/go-toml/v2 imports slices: package slices is not in GOROOT (/usr/local/go/src/slices) note: imported by a module that requires go 1.21

Matricule-se agora e aproveite até 50% OFF

O maior desconto do ano para você evoluir com a maior escola de tecnologia

QUERO APROVEITAR
1 resposta
solução!

Resolvi instalando a versão 1.23 do Go