Skip to content

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.

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-counter

Replace example-counter with the directory of any other example.