This is my take on the 2020 Advent of Code using the GO language.
-
Checkout the project, then download dependencies:
make init -
Create the basic sources files for a new day with:
make day 12 -
Run, giving the door to open and the parts to run as parameters:
make run -- -door 1 -parts 1,2or
make build ./adventofcode.out -door 1 -parts 1,2doormust be an integer between 1 and 24 (obviously),partsis a list of integers separated by commas.
You can also run unit tests:
make test