diff --git a/main.go b/main.go new file mode 100644 index 0000000..4b01527 --- /dev/null +++ b/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "adventoc/2024" + "bytes" + "fmt" + "io" + "os" +) + +func main() { + buf := new(bytes.Buffer) + tee := io.TeeReader(os.Stdin, buf) + + puzzle := adventoc2024.Day2{} + + fmt.Println("Part 1:", puzzle.Part1(tee)) + fmt.Println("Part 2:", puzzle.Part2(buf)) +}