1
0
Fork 0
adventofcode/helper/convert.go

15 lines
160 B
Go
Raw Normal View History

2024-12-03 08:02:16 +00:00
package helper
import (
"strconv"
)
func ToInt(s string) int {
i, _ := strconv.Atoi(s)
return i
}
func ToString(i int) string {
return strconv.Itoa(i)
}