diff options
author | hanemile <hanemile@chaosdorf.de> | 2018-09-28 18:02:30 +0200 |
---|---|---|
committer | hanemile <hanemile@chaosdorf.de> | 2018-09-28 18:02:30 +0200 |
commit | 9c8dff07f2c059b77a2fe0f2ace0ca009146bad6 (patch) | |
tree | 4aba681195e1422c046a9f8cc9a5b9227ff634c6 | |
parent | e65831ceecca1598adfc3819f96132f48a86440a (diff) |
defined a slice storing the stars
-rw-r--r-- | main.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/main.go b/main.go index e3af135..5a59c25 100644 --- a/main.go +++ b/main.go @@ -22,5 +22,12 @@ type star struct{ } func main() { - fmt.Println("Hello World") + // stars_arr is a slice storing the stars + stars_arr := []star{ + star{coord{1.0, 1.0}, force{0, 0}, 1000000}, + star{coord{3.0, 2.5}, force{0, 0}, 1000000}, + star{coord{1.0, 4.5}, force{0, 0}, 1000000}, + } + + fmt.Println(stars_arr) } |