https://github.com/andrewhaine/advent-of-go
Advent of Code solutions written in Go.
https://github.com/andrewhaine/advent-of-go
Last synced: 4 months ago
JSON representation
Advent of Code solutions written in Go.
- Host: GitHub
- URL: https://github.com/andrewhaine/advent-of-go
- Owner: AndrewHaine
- Created: 2023-11-26T15:25:04.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-16T18:39:44.000Z (7 months ago)
- Last Synced: 2025-01-30T19:24:59.955Z (5 months ago)
- Language: Go
- Homepage:
- Size: 1.78 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎄 Advent of Go 🎄
Advent of Code solutions written in Go.
## Usage
### Creating a new day
This package comes with template files for each day, simply run `make day` and follow the instructions to generate the relevant files.
### Testing solutions
Each AoC puzzle has an example input along with the expected outcome, in order to test your solution paste the provided input into `input_test.txt` for the day, cd into the day directory and run `go test -v`.
_Note: Some puzzles provide multiple test inputs, Add multiple tests/input files as required._
### Running solutions
Getting the answer for a solution is as simple as changing into the day directory and running:
```bash
go run . -part=1
```## A note on puzzle inputs
Your puzzle input should be pasted into the `input.txt` file for each day.
Puzzle inputs are not included in this repository, this is a request from the AoC team.