X-Git-Url: https://fbox.kageds.com/gitweb/adventofcode.git/blobdiff_plain/34e8893d313b467fe6f6a97b2d7ee5d9e49dd5f4..204e0014599587a1fef60355c3ba66eeb95e97d8:/2023/go/main.go diff --git a/2023/go/main.go b/2023/go/main.go index 0f19aeb..dbfddc1 100644 --- a/2023/go/main.go +++ b/2023/go/main.go @@ -11,6 +11,8 @@ import ( "adventofcode2023/day02" "adventofcode2023/day03" "adventofcode2023/day04" + "adventofcode2023/day05" + "adventofcode2023/day06" ) // Usage: go run main.go // assumes input is in day/input.txt @@ -31,6 +33,12 @@ func main() { case 4: fmt.Printf("part 1: %d\n", day04.Part1(utils.Readfile(d))) fmt.Printf("part 2: %d\n", day04.Part2(utils.Readfile(d))) + case 5: + fmt.Printf("part 1: %d\n", day05.Part1(utils.Readfile(d))) + fmt.Printf("part 2: %d\n", day05.Part2(utils.Readfile(d))) + case 6: + fmt.Printf("part 1: %d\n", day06.Part1(utils.Readfile(d))) + fmt.Printf("part 2: %d\n", day06.Part2(utils.Readfile(d))) default: panic(fmt.Errorf("no such day: %d", d)) } @@ -38,7 +46,7 @@ func main() { // Reads day from os.Args. func day() int { - latest := 3 + latest := 5 if len(os.Args) == 1 { return latest }