Browse Source

add puzzle runner main.go

master
Alexander Avery 3 weeks ago
parent
commit
dac7c598e7
  1. 19
      main.go

19
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))
}
Loading…
Cancel
Save