1
0
Fork 0
adventofcode/helper/convert.go
2024-12-03 20:27:21 +01:00

14 lines
160 B
Go

package helper
import (
"strconv"
)
func ToInt(s string) int {
i, _ := strconv.Atoi(s)
return i
}
func ToString(i int) string {
return strconv.Itoa(i)
}