This guide helps you set up a local go development environment on Arch Linux.
Prerequisites
-
Arch Linux (or compatible, e.g., Manjaro)
-
sudo privileges
1. Update System
sudo pacman -Syu
2. Essential Packages
Install the following packages:
sudo pacman -S \
zsh starship \
vlc brave \
go go-tools delve gopls \
code \
zsh-autosuggestions zsh-syntax-highlighting fzf \
goreleaser lcov genhtml golangci-lint \
bazel git make
3. Optional: Font Installer (getnf)
paru -S getnf
# or via script:
curl -fsSL https://raw.githubusercontent.com/getnf/getnf/main/install.sh | bash
4. Oh My Zsh (optional, for zsh users)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
5. GitHub CLI (optional)
sudo pacman -S github-cli
Tip:
-
Use
zshas your shell for a better experience. -
Use
starshipfor a modern prompt. -
Use
code(VS Code) for editing.