2021 Day 16 Part 1
This commit is contained in:
parent
bdfd44c2a3
commit
28db460d7b
2 changed files with 162 additions and 0 deletions
|
|
@ -39,6 +39,14 @@ func MustInt(s string) int {
|
|||
return i
|
||||
}
|
||||
|
||||
func MustHex(s string) int {
|
||||
i, err := strconv.ParseInt(s, 16, 0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return int(i)
|
||||
}
|
||||
|
||||
type Inputs struct {
|
||||
fs fs.FS
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue