goxpyriment

Hello World

A minimal standalone goxpyriment example that can be copied outside the repository and built without the go.work workspace. It shows a coloured rectangle on screen and waits for a key press.

Use this as a starting point if you want to develop an experiment in its own separate Go module.

Prerequisites

Running inside the repository

go run main.go
go run main.go -d   # windowed (development)

Running as a standalone module (outside the repo)

cp -r examples/hello_world ~/my-experiment
cd ~/my-experiment
go mod init my-experiment
go mod tidy
go run main.go

Building a binary

go build -o hello_goxpy .
./hello_goxpy

Controls

Press any key to exit.