From e65831ceecca1598adfc3819f96132f48a86440a Mon Sep 17 00:00:00 2001 From: hanemile Date: Fri, 28 Sep 2018 17:59:04 +0200 Subject: defined basic structures storing basic information --- main.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 main.go diff --git a/main.go b/main.go new file mode 100644 index 0000000..e3af135 --- /dev/null +++ b/main.go @@ -0,0 +1,26 @@ +package main + +import ( + "fmt" +) + +// force struct storing a force vector +type force struct{ + x, y float64 +} + +// coordinate struct storing the position of stars +type coord struct{ + x, y float64 +} + +// star struct storing information about the star +type star struct{ + c coord + f force + mass float64 +} + +func main() { + fmt.Println("Hello World") +} -- cgit 1.4.1