From 08880ea88b409a3252d2bef9b4aa299f8af59625 Mon Sep 17 00:00:00 2001 From: derek mcquay Date: Tue, 23 Aug 2016 09:15:34 -0700 Subject: [PATCH] added month to tranx --- server.go | 1 + tranx.go | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server.go b/server.go index 1ad95a2..e5c5a7d 100644 --- a/server.go +++ b/server.go @@ -122,6 +122,7 @@ func (s *Server) tranx(w http.ResponseWriter, r *http.Request) { Cost: t.Cost, Store: t.Store, Info: t.Info, + Month: t.Month, }, ) } diff --git a/tranx.go b/tranx.go index a1599de..004e29d 100644 --- a/tranx.go +++ b/tranx.go @@ -1,7 +1,10 @@ package chipmunk +import "time" + type tranx struct { - Cost float32 `json:"cost"` - Store string `json:"store"` - Info string `json:"Info"` + Cost float32 `json:"cost"` + Store string `json:"store"` + Info string `json:"Info"` + Month time.Month `json:"Month"` }