#How to assign filtered integers to an array or variable
12 messages · Page 1 of 1 (latest)
yeah, but how do i convert the given numbers as int and save them in a variable
strconv is good for parsing to an int
i know that but the problem is, i dont know how to type it out
could you help me out?
func Atoi(s string) (int, error)
Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
iterate over resulting string slice, convert values and assign them to corresponding int slice index
how should i type it tho?
I suggest taking tour of go
A Tour of Go, https://go.dev/tour/welcome/1 - Skippy