My absolute commitment of 2 or 3 days at most, probably. This year, in Go.
The puzzles are implemented as a test suite, there is no binary to build.
go test -v
- Set
AOC_SESSION_ID
to your advent of code session cookie - Get your inputs with
sync-inputs
E.g.:
go install ./cmd/sync-inputs
env AOC_SESSION_ID=abcdef sync-inputs
You will have to update the test case values in main_test.go
There is a compose.yaml
if you prefer to use a container.
- Place
AOC_SESSION_ID
in.env
file - Run
docker compose up -d
- Run
docker compose exec app sync-inputs
(and update the test cases) - Run
docker compose exec app go test -v
There is also a .devcontainer
config which will give you a nice test UI in VSCode (if you have installed the Dev Containers extension)