Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 750d36a

Browse files
author
Edward Muller
committed
Output the right port in server.go
1 parent 3a54049 commit 750d36a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ func main() {
9191
}
9292
http.HandleFunc("/comments.json", handleComments)
9393
http.Handle("/", http.FileServer(http.Dir("./public")))
94-
log.Println("Server started: http://localhost:3000")
94+
log.Println("Server started: http://localhost:" + port)
9595
log.Fatal(http.ListenAndServe(":"+port, nil))
9696
}

0 commit comments

Comments
 (0)