-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
67 lines (63 loc) · 1.96 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package main
import (
"github.com/juangw/advent-of-code/2022/day_1"
"github.com/juangw/advent-of-code/2022/day_10"
"github.com/juangw/advent-of-code/2022/day_2"
"github.com/juangw/advent-of-code/2022/day_3"
"github.com/juangw/advent-of-code/2022/day_4"
"github.com/juangw/advent-of-code/2022/day_5"
"github.com/juangw/advent-of-code/2022/day_6"
"github.com/juangw/advent-of-code/2022/day_7"
"github.com/juangw/advent-of-code/2022/day_8"
"github.com/juangw/advent-of-code/2022/day_9"
day_1_2023 "github.com/juangw/advent-of-code/2023/day_1"
day_2_2023 "github.com/juangw/advent-of-code/2023/day_2"
day_3_2023 "github.com/juangw/advent-of-code/2023/day_3"
day_1_2024 "github.com/juangw/advent-of-code/2024/day_1"
day_2_2024 "github.com/juangw/advent-of-code/2024/day_2"
day_3_2024 "github.com/juangw/advent-of-code/2024/day_3"
day_4_2024 "github.com/juangw/advent-of-code/2024/day_4"
"log"
"os"
)
func main() {
yearArg := os.Args[1]
logger := log.New(os.Stdout, "", log.LstdFlags|log.Lshortfile)
if yearArg == "2022" {
day_1.RunPart1(logger)
day_1.RunPart2(logger)
day_2.RunPart1(logger)
day_2.RunPart2(logger)
day_3.RunPart1(logger)
day_3.RunPart2(logger)
day_4.RunPart1(logger)
day_4.RunPart2(logger)
day_5.RunPart1(logger)
day_5.RunPart2(logger)
day_6.RunPart1(logger)
day_6.RunPart2(logger)
day_7.RunPart1(logger)
day_7.RunPart2(logger)
day_8.RunPart1(logger)
day_8.RunPart2(logger)
day_9.RunPart1(logger)
day_9.RunPart2(logger)
day_10.RunPart1(logger)
} else if yearArg == "2023" {
day_1_2023.RunPart1(logger)
day_1_2023.RunPart2(logger)
day_2_2023.RunPart1(logger)
day_2_2023.RunPart2(logger)
day_3_2023.RunPart1(logger)
day_3_2023.RunPart2(logger)
} else if yearArg == "2024" {
day_1_2024.RunPart1(logger)
day_1_2024.RunPart2(logger)
day_2_2024.RunPart1(logger)
day_2_2024.RunPart2(logger)
day_3_2024.RunPart1(logger)
day_3_2024.RunPart2(logger)
day_4_2024.RunPart1(logger)
day_4_2024.RunPart2(logger)
}
}