Golang
Install and manage Go locally (Windows, macOS, Linux) using official archives or package managers; manage modules with go mod.
π§Ύ Overview
Go (Golang) is a compiled language suited for APIs, workers, CLIs and concurrent services. Local installation lets you build and test binaries before deploying.
π₯ Installation (choose one)
1
Download the Windows .msi from https://go.dev/dl/
2
Run it (adds Go to PATH).
3
Reopen terminal (PowerShell / CMD).
4
Verify:
π Modules & Project Init
1
Initialize a module (creates go.mod)
2
Add a file main.go
3
Run
4
Build
π Updating
Task
Command
Tidy modules
go mod tidy
Update deps (minor/patch)
go get -u ./...
Update single module
go get -u module/name
Verify modules
go mod verify
π Common Commands
Last updated