Hey! This year I am doing all the Advent of Code 2020 challenges in Golang!
My experience with the language is fairly minimal, so if you notice me doing anything dumb/inefficient in my solutions, please feel do let me know either on Twitter @varbrad or by raising a pull request right here on GitHub and let me know what I did wrong or could improve!
The commands below require your current working directory to be in the repository root, e.g.
~/dev/aoc-2020
, also most of the puzzle input paths will only work if you are in that directory.
Use the go run
command followed by a relative path to the day;
e.g.
go run ./day1
This will run both Part 1 & 2 (if it exists)
Use the go test
command followed by a relative path to the day;
e.g.
go test ./day1
Alternatively, you can run all of tests in the entire repository;
go test ./...