diff options
author | hanemile <hanemile@protonmail.com> | 2019-01-12 21:32:11 +0100 |
---|---|---|
committer | hanemile <hanemile@protonmail.com> | 2019-01-12 21:32:11 +0100 |
commit | af81b075036ac7c581321f587a06576650dec331 (patch) | |
tree | 448be79c34d079a96a85e4ea3ddcb831c29ee7e9 /vector2D.go | |
parent | 30fecdeaef86a04cad7a9f93a31ae9856ad4e473 (diff) |
added json attributes to objects
Diffstat (limited to 'vector2D.go')
-rw-r--r-- | vector2D.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vector2D.go b/vector2D.go index 2b95a72..551391d 100644 --- a/vector2D.go +++ b/vector2D.go @@ -5,7 +5,8 @@ import ( ) type Vec2 struct { - X, Y float64 + X float64 `json:X` + Y float64 `json:Y` } // newVec2 returns a new Vec2 using the given coordinates |