All Guides
Go (Golang) Setup
Install the Go programming language and create your first project.
Beginner10 min
Setup Steps
1. Download and install Go:
wget https://go.dev/dl/go1.22.4.linux-amd64.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz2. Add to PATH (.bashrc):
export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin3. Reload your shell:
source ~/.bashrc4. Check version:
go version5. Create a new project:
mkdir project && cd project
go mod init github.com/username/project6. Create main.go:
go
package main
import "fmt"
func main() {
fmt.Println("Hello Go!")
}7. Run:
go run main.go8. Compile:
go build -o project main.go9. Add a dependency:
go get github.com/gin-gonic/gin10. Run tests:
go test ./...Related Guides
Deploy to Vercel
Deploy your Next.js or React project to the Vercel platform.
Deploy to Netlify
Deploy your static site or JAMstack project to Netlify.
Bun Runtime Setup
Install the Bun JavaScript/TypeScript runtime. A fast alternative to Node.js.
Deno Setup
Install the Deno JavaScript/TypeScript runtime. A secure and modern alternative.