diff options
author | clsr <clsr@clsr.net> | 2016-06-16 20:19:29 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-06-16 20:19:29 +0200 |
commit | eb178593f03bf84b4d1a52eb77f6d37cf2e3729f (patch) | |
tree | b2e68db9cd561bae2fd15304e8f2091625ea6c3c | |
parent | ce46c90e1964c26111442c780d2c173c46d6ccad (diff) | |
download | gomf-eb178593f03bf84b4d1a52eb77f6d37cf2e3729f.tar.gz gomf-eb178593f03bf84b4d1a52eb77f6d37cf2e3729f.zip |
Fix JSON struct tags so that omitempty worksv0.1.5
-rw-r--r-- | api.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |