Allez String to int Array with Space Séparateur
func strToIntArr(s string) []int {
strs := strings.Split(s, " ")
res := make([]int, len(strs))
for i := range res {
res[i], _ = strconv.Atoi(strs[i])
}
return res
}
Mackerel