about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-02-05 21:17:59 +0100
committerEmile <hanemile@protonmail.com>2019-02-05 21:17:59 +0100
commit6fb6939688e27f215bac02fac1a8e5053d41b698 (patch)
treeecf18ab9fe0d2e6cec68ffd6138e79e83f5c9eb4
parent4c954995612de39648a4c31704ff5ecdc4649d8e (diff)
fixed the json tag format
-rw-r--r--vector2D.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vector2D.go b/vector2D.go
index 551391d..6f49582 100644
--- a/vector2D.go
+++ b/vector2D.go
@@ -5,8 +5,8 @@ import (
 )
 
 type Vec2 struct {
-	X float64 `json:X`
-	Y float64 `json:Y`
+	X float64 `json:"X"`
+	Y float64 `json:"Y"`
 }
 
 // newVec2 returns a new Vec2 using the given coordinates