Skip to content

My Advent of Code 2020 solutions, all written in Go!

Notifications You must be signed in to change notification settings

varbrad/aoc-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My Advent of Code 2020 solutions, all written in Go!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages