From 9fd17f5f0333974052b66e39200a655c4e29a431 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Sun, 7 Feb 2016 18:43:34 -0500 Subject: [PATCH] Cleaned up a little Former-commit-id: af2ba688dac0d0b970d2c5fe060c0cfbdea2aacf [formerly 3ffec2cba795a7cdc1d24993ec39de29f01e0a92] [formerly a9e84aa28cd48712673233d02a2053a7f79f84af [formerly f8268bd5b158131b56c437eddc91901670327a5b [formerly 179cf911caacb0d0835cca17e14588d384cded94]]] Former-commit-id: 996d7c30b7d1ea60ca3ea1ba5bb560464e1d12e0 [formerly 9f8c7111ba6a6b7fdb44fb511d439b9acebcf0bf] Former-commit-id: 39b5044fd6917f9f146fe0fdd431ceda8bb096cb Former-commit-id: f43b34d5ff65c80e150837956dbafb59b04912d4 --- main.go | 7 +++---- websockets.go | 4 ---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/main.go b/main.go index 601a256..50ebf1b 100644 --- a/main.go +++ b/main.go @@ -57,11 +57,10 @@ Options:`) // Default page p := CowyoData{"about", about_page, []string{}, []string{}} p.save(about_page) - fmt.Println(about_page) - var q CowyoData - q.load("SpikySeaSlug") - rebuildTexts(q) + //var q CowyoData + //q.load("SpikySeaSlug") + //rebuildTexts(q) r := gin.Default() r.LoadHTMLGlob("templates/*") diff --git a/websockets.go b/websockets.go index 866c369..b870450 100644 --- a/websockets.go +++ b/websockets.go @@ -41,15 +41,11 @@ func wshandler(w http.ResponseWriter, r *http.Request) { var p CowyoData err = p.load(m.Title) - fmt.Println("LOADED") - fmt.Println(p) if err != nil { panic(err) } if m.UpdateServer { err := p.save(m.TextData) - fmt.Println("SAVED") - fmt.Println(p) if err != nil { panic(err) }