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