i am getting the error, too few values in struct initialiser at line clusters = append(clusters, Cluster{Point{rand.Float64()}, []Point{}}) the function that throws the error
A struct composite literal must either use named fields or specify all fields. The Point struct has two fields, X and Y. Assuming that you were attempting to set the X field, do one of the following:
Point{X: rand.Float64()} // Y defaults to zero value
Point(X: rand.Float64(), Y: 0} // Y explicitly set to zero using name
Point(rand.Float64(), 0} // Y explicitly set to zero using positional value
Specifying struct fields by name is generally preferred over positional values.