From e8945192276de251022bd4732178cd0143f41f78 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 26 Oct 2016 01:53:15 -0700 Subject: code reorganizing --- system/api/handlers.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'system') diff --git a/system/api/handlers.go b/system/api/handlers.go index 2ec82bb..a56a667 100644 --- a/system/api/handlers.go +++ b/system/api/handlers.go @@ -3,7 +3,6 @@ package api import ( "bytes" "encoding/json" - "fmt" "log" "net/http" "strconv" @@ -69,8 +68,6 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { all = append(all, post) } - fmt.Println(len(posts)) - var start, end int switch count { case -1: @@ -203,6 +200,7 @@ func SendJSON(res http.ResponseWriter, j map[string]interface{}) { data, err = json.Marshal(j) if err != nil { + log.Println(err) data, _ = json.Marshal(map[string]interface{}{ "status": "fail", "message": err.Error(), -- cgit v1.2.3