Log port being listened on

This commit is contained in:
Kegan Dougal 2015-09-17 15:46:37 +01:00
parent bb441427ac
commit 9b18fd252e

View file

@ -56,7 +56,7 @@ func main() {
go doPopulate(ch, dir)
go watchFS(ch, w)
fmt.Printf("Listening on port %d\n", *port)
http.HandleFunc("/", serve)
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *port), nil))