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

14 lines
139 B
Go
Raw Normal View History

2024-12-03 14:42:28 +00:00
package util
import (
"strconv"
)
func MustConv(s string) int {
n, err := strconv.Atoi(s)
if err != nil {
panic(err)
}
return n
}