What is the data type?

var N []struct {
field1 int
field2 float64
}
What is it []struct?

The [] prefix in types denote a slice, so Ns type holds zero to many struct{…}.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.