I have this code, which is giving me errors:
package main
import (
"fmt"
)
func main() {
var cnt = make([][]string,0,10)
for i := 0; i < 5; i++ {
var tmp = make([]string,0,8)
for c := 0 ; c < 5 ; c++ {
tmp = append(tmp,"Matias")
}
cnt= append(cnt,tmp...)
}
fmt.Println(cnt)
}
It's giving me an error. Basically what I need is to have the slice to be as dinámic as possible. I don't know what the final length will be in any of the two dimensions.