Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewhaine/advent-of-go
Advent of Code solutions written in Go.
https://github.com/andrewhaine/advent-of-go
Last synced: 20 days 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 (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-01T10:59:32.000Z (22 days ago)
- Last Synced: 2024-12-01T11:31:29.997Z (22 days ago)
- Language: Go
- Homepage:
- Size: 55.7 KB
- 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.