- Create
daynN/test.txt
- Create
dayN/input.txt
- Run:
go run dayN/main.go -part <1 or 2> [-test]
-test
will run the test.txt
inputs instead of input.txt
- Create
daynN/test.txt
- Create
dayN/input.txt
mkdir bin/
- Build:
go build -o bin/dayN dayN/main.go
- Run:
bin/dayN -part <1 or 2> [-test]
-test
will run the test.txt
inputs instead of input.txt
Make sure that you use LF instead of CRLF in test.txt and input.txt
Run ./create-day.sh <N>
where N
is the day number (under windows use WSL or create a Powershell Script)
Copied (first 3 days are not mine) and modified from https://github.com/viliusan/aoc2023-go and https://github.com/Stogas/aoc2023-go