Device is an emulator for a fictional I/O control device.
See manual.md.
To install:
GOSUMDB=off go install github.com/thorntonrose/device/cmd@latest
Prequisites:
- Go 1.25+
- Mage 1.15+
To build:
mage build
Output is ./bin/device.
To run:
./bin/device [flags] <file>
Run with -h or -help for help.
To run tests:
[PACKAGE=<path>] [TESTS=<pattern>] mage test
<path> = a Go package path, e.g. ./internal/parser
<pattern> = a test name pattern, e.g. TestParse, ^TestParse$