about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorhanemile <hanemile@chaosdorf.de>2018-09-28 17:59:04 +0200
committerhanemile <hanemile@chaosdorf.de>2018-09-28 17:59:04 +0200
commite65831ceecca1598adfc3819f96132f48a86440a (patch)
tree07df5ef981215e11555d498f8d7b8123c8c3872f /main.go
parent3d3cc14152aa17c049feceb7bf2813a2dca33825 (diff)
defined basic structures storing basic information
Diffstat (limited to 'main.go')
-rw-r--r--main.go26
1 files changed, 26 insertions, 0 deletions
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")
+}