1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package structs type Force struct { X, Y float64 } type Coord struct { X, Y float64 } type Star struct { C Coord F Force Mass float64 }