Go 1.20 solutions to the Advent of Code problems. Check out https://adventofcode.com/2021
- Put
input.txt
as downloaded from the Advent of Code website into the folder corresponding to the day - Run
go generate
,go build
,./aoc2021 day part
- Run
./aoc2021 -h
for options
For building:
- PowerShell (if using
build.ps1
) - goimports (if using
goimports
instead ofgo fmt
) - modd (if using modd)
https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/cortesi/modd/cmd/modd@latest
For code:
- https://github.com/zellyn/kooky - for reading Advent of Code session cookie from browser cache
- https://github.com/mattn/godown - for converting Advent of Code puzzle description from html to markdown