Examples
Examples
Each example is a small, runnable gift program from
cmd. Its page shows what it does, how to run it and its complete
source code.

State, buttons, a scroll view and a theme switch in one file. Start here.

Most components in one window: four tabs, navigation, controls, lists, a form and dialogs.

A photo browser with the full image pipeline: files, HTTP, decode errors and a disk cache.

Glass over a scrolling gallery, and cards with borders and shadows.

A video with sound and touch controls, sized for a five inch panel.
Run an example
You need the Go version from go.mod and a graphical session; see Installation.
From a checkout of the repository, run:
go run ./cmd/example-counterReplace example-counter with the directory of any other example.