Don't need ':' for port configuration

This commit is contained in:
Las Zenow 2012-08-31 01:00:08 +02:00
parent fbed1ab5ab
commit 7a35b283b5
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
package main
const (
PORT = ":8080"
PORT = "8080"
DB_IP = "127.0.0.1"
DB_NAME = "trantor"
BOOKS_COLL = "books"

View file

@ -154,5 +154,5 @@ func main() {
fileHandler("/css/")
fileHandler("/js/")
http.HandleFunc("/", indexHandler(coll))
panic(http.ListenAndServe(PORT, nil))
panic(http.ListenAndServe(":"+PORT, nil))
}