This repository serves as a skeleton for creating new Advent of Code (AoC) projects. You can use this template to quickly set up a new repository for solving AoC challenges.
-
Clone the repository:
git clone https://github.com/igorwulff/aoc-skeleton.git cd aoc-skeleton
-
Change the module name: Update the
go.mod
file with your new module name.module github.com/yourusername/your-new-repo
-
Install dependencies:
go mod tidy
-
Run the application:
go run main.go
main.go
: Entry point of the application.Copy 2024/template folder to 2024/day{number}
2024/day1/part1.go
: Solution for Day 1, Part 1.2024/day1/part1_test.go
: Tests for Day 1, Part 1.2024/day1/input.txt
: Input data for Day 1.
It is advised to add the sample input and output provided by Advent of Code to a test case for each day and part as a minimal.
Feel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License.