diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-09-20 00:39:40 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-09-20 00:39:40 -0700 |
commit | a9443c6feb05a0e9306b0347ccf381ecd8822358 (patch) | |
tree | 9cc9c20ecb1a753049629b57ff02132608a7271a /system/server.go | |
parent | cb545173a6f33aff050a1855dcb87184d50b79a6 (diff) |
removing fmt printlns from debugging
Diffstat (limited to 'system/server.go')
-rw-r--r-- | system/server.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/system/server.go b/system/server.go index 4a83706..d529d31 100644 --- a/system/server.go +++ b/system/server.go @@ -26,8 +26,6 @@ func main() { post := contentType() if i != "" { - fmt.Println("Need to show post id:", i, "(", t, ")") - data, err := db.Get(t + ":" + i) if err != nil { fmt.Println(err) @@ -62,8 +60,6 @@ func main() { cid := req.FormValue("id") t := req.FormValue("type") - fmt.Println("query data: t=", t, "id=", cid) - id, err := db.Set(t+":"+cid, req.PostForm) if err != nil { fmt.Println(err) @@ -71,11 +67,11 @@ func main() { return } - fmt.Println(t, "post created:", id) scheme := req.URL.Scheme host := req.URL.Host path := req.URL.Path - desURL := scheme + host + path + "?type=" + t + "&id=" + fmt.Sprintf("%d", id) + id = fmt.Sprintf("%d", id) + desURL := scheme + host + path + "?type=" + t + "&id=" + id http.Redirect(res, req, desURL, http.StatusFound) } }) |