This guide will help you install Go, Visual Studio Code, and Git on your system.
Instructions are provided for macOS, Linux, and Windows, in English and Portuguese.
- Go to the official site: https://go.dev/dl
- Download the
.pkgfile for macOS and run it. - After installation, open the Terminal and type:
go version- Visit: https://code.visualstudio.com
- Download the macOS version (
.zip). - Move the VS Code app to the
/Applicationsfolder. - Open it and install the Go extension:
- Press
Cmd+Shift+X, search for Go, and install it.
- Press
- Open Terminal and type:
git --version- If Git is not installed, install via Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install git- Acesse: https://go.dev/dl
- Baixe o arquivo
.pkgpara macOS e execute-o. - Após a instalação, abra o Terminal e digite:
go version- Visite: https://code.visualstudio.com
- Baixe a versão para macOS (
.zip). - Mova o aplicativo para a pasta
/Applications. - Abra o VS Code e instale a extensão Go:
- Pressione
Cmd+Shift+X, procure por Go e instale.
- Pressione
- Abra o Terminal e digite:
git --version- Se o Git não estiver instalado, instale com o Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gitsudo apt update
sudo apt install golang-go
go versionsudo apt update
sudo apt install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code- Open VS Code and install the Go extension (
Ctrl+Shift+X, search for Go)
sudo apt install git
git --versionsudo apt update
sudo apt install golang-go
go versionsudo apt update
sudo apt install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update
sudo apt install code- Abra o VS Code e instale a extensão Go (
Ctrl+Shift+X, procure Go)
sudo apt install git
git --version- Visit https://go.dev/dl
- Download the Windows
.msiinstaller and run it. - Open
Command PromptorPowerShelland type:
go version- Visit https://code.visualstudio.com
- Download the installer and install it.
- Open VS Code, press
Ctrl+Shift+X, search for Go, and install the extension.
- Visit: https://git-scm.com
- Download and run the installer.
- Confirm installation with:
git --version- Acesse https://go.dev/dl
- Baixe o instalador
.msido Windows e execute. - Abra o
Prompt de ComandoouPowerShelle digite:
go version- Acesse: https://code.visualstudio.com
- Baixe o instalador e instale.
- Abra o VS Code, pressione
Ctrl+Shift+X, procure por Go e instale a extensão.
- Visite: https://git-scm.com
- Baixe e execute o instalador.
- Verifique com:
git --version✅ You're now ready to begin writing your first Go programs!
✅ Agora você está pronto para começar a programar em Go!