Go (Golang) Cheat Sheet

Last Updated: November 21, 2025

Basic Syntax

package main

import "fmt"

func main() {
    fmt.Println("Hello World")
}

Goroutines

go func()
Run concurrently
make(chan type)
Create channel
defer
Execute after return
💡 Pro Tip: Use gofmt to automatically format your code!
← Back to Programming Languages | Browse all categories | View all cheat sheets