The struct of interest is shown below
type rect struct {
width, height float64
testArray []struct{
id string
}
}
I am trying to initialize the struct as shown below
r := rect{
width: 10,
height: 10,
testArray: []struct{
id: "wwwww",
},
{
id: "wwwww",
},
}
However it throws me an error saying
syntax error: unexpected :, expecting type