Stored in the template
directory and rendered on-demand by task go:template
.
The year and day that the go:template
task renders for can be overridden by setting the AOC_YEAR
and AOC_DAY
environment variables when calling the task, like so:
AOC_YEAR=2016 AOC_DAY=2 task go:template
This is where the reusable maths live.