Watch
1
0
Fork
You've already forked advent-of-code
0

2021 Day 19 Part 1

This commit is contained in:
Jeremy Kaplan 2021-12-19 09:49:33 -08:00
commit 7b389121b0
2 changed files with 251 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package aoc
import (
"bufio"
"fmt"
"io"
"io/fs"
"os"
@ -103,3 +104,9 @@ func Ints(text string) (ns []int) {
func ExLines(text string) []string {
return strings.Split(strings.TrimSpace(text), "\n")
}
func MustScan(text, format string, dests ...interface{}) {
if _, err := fmt.Sscanf(text, format, dests...); err != nil {
panic(err)
}
}