Go repository for the solutions of AOC over the years.
-
Run
newday.sh 2023 01
- creates a new dir and generates scaffold (run.go
,sol.go
andinput.txt
) -
Input needs to be pasted manually
-
main.go
- in the project root, add a new case for the year/day:
package main
import (
...
y22d01 "advent/2022/day01"
y23d01 "advent/2023/day01"
)
func main() {
...
switch year {
case "2022":
switch day {
case "01":
y22d01.Run()
}
...
case "2023":
switch day {
case "01":
y23d01.Run()
}
...
}
go run main.go 2023 01