From d9a188853036268435c9578cf7327c003bd0f56e Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Sun, 23 Oct 2016 18:08:47 +0200 Subject: [PATCH] Less debug, use "protocols" as in Barry's API design. --- protocols.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/protocols.go b/protocols.go index 5257d98..fe3574a 100644 --- a/protocols.go +++ b/protocols.go @@ -2,7 +2,6 @@ package main import ( "encoding/json" - "fmt" "net/http" "github.com/julienschmidt/httprouter" @@ -19,9 +18,7 @@ func Protocols(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { return } - res["data"] = pattern("getprotocol", lines) - - fmt.Printf(">>>>>>>>>>>>>>>> data: %v\n", res["data"]) + res["protocols"] = pattern("getprotocol", lines) js, _ := json.Marshal(res)