From eb178593f03bf84b4d1a52eb77f6d37cf2e3729f Mon Sep 17 00:00:00 2001 From: clsr Date: Thu, 16 Jun 2016 20:19:29 +0200 Subject: Fix JSON struct tags so that omitempty works --- api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.go b/api.go index 82a4817..ac1928b 100644 --- a/api.go +++ b/api.go @@ -63,9 +63,9 @@ type result struct { type response struct { Success bool `json:"success"` - ErrorCode int `json:"errorcode",omitempty` - Description string `json:"description",omitempty` - Files []result `json:"files",omitempty` + ErrorCode int `json:"errorcode,omitempty"` + Description string `json:"description,omitempty"` + Files []result `json:"files,omitempty"` } func handleUpload(w http.ResponseWriter, r *http.Request) { -- cgit