I have a line containing 3 numbers that I want to read from stdin with fmt.Scanln() but this code won't work:
X := make([]int, 3)
fmt.Scanln(X...)
fmt.Printf("%v
", X)
I get this error message:
cannot use X (type []int) as type []interface {} in function argument
I don't get it.