Skip to main content

Go Language

Install Go Language​

Download the MSI and install.

sh choco install golang

Initialize Go Module​

go version
go mod init <module-name>

Go - Install dependency / Check for Unused Dependencies​

go mod tidy

Build the application​

go build -ldflags="-s -w" -o myapp

# If you want to embed version info (optional):

go build -ldflags="-s -w -X main.version=1.2.3" -o myapp

Go Run​

go run main.go

Upgrade the Go Lang Version​


go version

VS Code Plugin​

  1. Go Lang