Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/varbrad/aoc-2020
My Advent of Code 2020 solutions, all written in Go!
https://github.com/varbrad/aoc-2020
advent-of-code-2020 aoc2020 golang
Last synced: about 1 month ago
JSON representation
My Advent of Code 2020 solutions, all written in Go!
- Host: GitHub
- URL: https://github.com/varbrad/aoc-2020
- Owner: varbrad
- Created: 2020-12-01T10:37:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-10T18:28:46.000Z (almost 4 years ago)
- Last Synced: 2023-03-21T10:45:14.674Z (almost 2 years ago)
- Topics: advent-of-code-2020, aoc2020, golang
- Language: Go
- Homepage:
- Size: 119 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ☃️ Advent of Code 2020 ☃️
[![codecov](https://codecov.io/gh/varbrad/aoc-2020/branch/main/graph/badge.svg?token=FXFN9E88Y5)](https://codecov.io/gh/varbrad/aoc-2020)
Hey! This year I am doing all the [Advent of Code 2020](https://adventofcode.com/2020) challenges in [Golang](https://golang.org/)!
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](https://twitter.com/varbrad) or by raising a [pull request right here on GitHub](https://github.com/varbrad/aoc-2020/compare) 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.
```zsh
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.
```zsh
go test ./day1
```Alternatively, you can run _all_ of tests in the entire repository;
```zsh
go test ./...
```