Don't need ':' for port configuration
This commit is contained in:
parent
fbed1ab5ab
commit
7a35b283b5
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
const (
|
||||
PORT = ":8080"
|
||||
PORT = "8080"
|
||||
DB_IP = "127.0.0.1"
|
||||
DB_NAME = "trantor"
|
||||
BOOKS_COLL = "books"
|
||||
|
|
|
@ -154,5 +154,5 @@ func main() {
|
|||
fileHandler("/css/")
|
||||
fileHandler("/js/")
|
||||
http.HandleFunc("/", indexHandler(coll))
|
||||
panic(http.ListenAndServe(PORT, nil))
|
||||
panic(http.ListenAndServe(":"+PORT, nil))
|
||||
}
|
||||
|
|
Reference in a new issue