summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-03-25 15:54:32 +0100
committerKevin Chabowski <kevin@kch42.de>2014-03-25 15:54:32 +0100
commit966c17bb84866f10fc9e995df4107ed11ed2bdce (patch)
tree5e0446c4bb80dcefd7e705ce8de38d1a06989418 /main.go
parent3aa1c450a3376a4339354579f90b6111b963c78a (diff)
downloadsimplechat-966c17bb84866f10fc9e995df4107ed11ed2bdce.tar.gz
simplechat-966c17bb84866f10fc9e995df4107ed11ed2bdce.tar.bz2
simplechat-966c17bb84866f10fc9e995df4107ed11ed2bdce.zip
Move protocol agnostic stuff into own package.
So we can test it more easily.
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index 9502f0c..4efcc9c 100644
--- a/main.go
+++ b/main.go
@@ -3,6 +3,7 @@ package main
import (
"flag"
"github.com/gorilla/mux"
+ "github.com/kch42/simplechat/chat"
"log"
"math"
"net/http"
@@ -25,6 +26,7 @@ func main() {
}
PrepTemplates()
+ chat.InitRooms(*perroom)
r := mux.NewRouter()
r.HandleFunc("/", Home)