Make the port configurable

This commit is contained in:
Las Zenow 2012-08-31 00:35:39 +02:00
parent ade035eb00
commit 90d401e98e
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
package main
const (
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))
http.ListenAndServe(":8080", nil)
http.ListenAndServe(PORT, nil)
}