aoc2024/day-03/internal/util/util.go

14 lines
139 B
Go

package util
import (
"strconv"
)
func MustConv(s string) int {
n, err := strconv.Atoi(s)
if err != nil {
panic(err)
}
return n
}