Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.19 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.19 KB

aoc-skeleton

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.

Getting Started

  1. Clone the repository:

    git clone https://github.com/igorwulff/aoc-skeleton.git
    cd aoc-skeleton
  2. Change the module name: Update the go.mod file with your new module name.

    module github.com/yourusername/your-new-repo
  3. Install dependencies:

    go mod tidy
  4. Run the application:

    go run main.go

Project Structure

  • 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.

Testing

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.

Contributing

Feel free to open issues or submit pull requests if you find any bugs or have suggestions for improvements.

License

This project is licensed under the MIT License.