# README
Advent of Code 2024 - Go Solutions
My solutions for Advent of Code 2024 using Golang.
Setup
- Ensure you have Go 1.23+ installed
- Clone this repository
- Navigate to the project directory
Makefile Commands
Running Solutions
Run a specific day's solution:
make run 01 # Runs day01's solution
make run 02 # Runs day02's solution
Alternative run method:
make run DAY=day01
Building
Build all day solutions:
make build # Builds all day solutions
Clean build artifacts:
make clean # Removes build artifacts for all days
Manual Running
Alternatively, you can manually run a solution:
go run day01/main.go
Directory Structure
dayXX/
: Contains solution for each daymain.go
: The solutioninput.txt
: Puzzle inputREADME.md
: Day-specific notes
Tools
- VSCode recommended
- Go extension installed
- Recommended Go tools:
gofmt
for formattinggolangci-lint
for linting
Development Workflow
- Create a new day directory (e.g.,
day01
) - Implement solution in
main.go
- Add input in
input.txt
- Run and validate using Makefile commands