]> fbox.kageds.com Git - adventofcode.git/blobdiff - 2022/go/main.go
Day_1
[adventofcode.git] / 2022 / go / main.go
index c92f46b96e685163fd45237634d9ffa6b0183f11..0c06107ed2c7c4f35b68314aa05c59d7b2416605 100644 (file)
@@ -18,6 +18,8 @@ import (
        "adventofcode2022/day08"
        "adventofcode2022/day09"
        "adventofcode2022/day10"
        "adventofcode2022/day08"
        "adventofcode2022/day09"
        "adventofcode2022/day10"
+       "adventofcode2022/day11"
+
 
 )
 
 
 )
 
@@ -58,6 +60,9 @@ func main() {
        case 10:
                fmt.Printf("part 1: %d\n", day10.Part1(utils.Readfile(d)))
                fmt.Printf("part 2: %s\n", day10.Part2(utils.Readfile(d)))
        case 10:
                fmt.Printf("part 1: %d\n", day10.Part1(utils.Readfile(d)))
                fmt.Printf("part 2: %s\n", day10.Part2(utils.Readfile(d)))
+       case 11:
+               fmt.Printf("part 1: %d\n", day11.Part1(utils.Readfile(d)))
+               fmt.Printf("part 2: %d\n", day11.Part2(utils.Readfile(d)))
        default:
                panic(fmt.Errorf("no such day: %d", d))
        }
        default:
                panic(fmt.Errorf("no such day: %d", d))
        }
@@ -65,7 +70,7 @@ func main() {
 
 // Reads day from os.Args.
 func day() int {
 
 // Reads day from os.Args.
 func day() int {
-       latest := 9
+       latest := 10
        if len(os.Args) == 1 {
                return latest
        }
        if len(os.Args) == 1 {
                return latest
        }