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

12 lines
133 B
Go
Raw Normal View History

2025-01-07 17:20:07 +00:00
package two
2024-12-03 14:42:28 +00:00
2025-01-07 17:20:07 +00:00
import "strconv"
2024-12-03 14:42:28 +00:00
2025-01-07 17:20:07 +00:00
func mustConv(s string) int {
2024-12-03 14:42:28 +00:00
n, err := strconv.Atoi(s)
if err != nil {
panic(err)
}
return n
}