Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.27 KB

☃️ Advent of Code 2020 ☃️

codecov

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!

🎅 ❄️ 🎁 🦌 ⛄ 👪 🎄

Running the code

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.

Run a solution

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)

Running tests

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 ./...