I was constrained to define a particular type for []string
because I implemented a custom yaml parser for the strSlice type.
Now I need to cast []strSlice
back into [][]string
but the go compiler 1.7.1 reject it as an error.
type strSlice []string
var x1 []strSlice
var x2 [][]string
...
x2 = [][]string(x1)
How can I perform the cast operation ?