From 6fb6939688e27f215bac02fac1a8e5053d41b698 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 5 Feb 2019 21:17:59 +0100 Subject: fixed the json tag format --- vector2D.go | 4 ++-- 1 file 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 -- cgit 1.4.1