Uncomment all the things you need.
This commit is contained in:
parent
729f908dea
commit
14ca896bf8
|
@ -12,7 +12,7 @@ package main
|
|||
|
||||
import (
|
||||
"flag"
|
||||
//"log"
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -24,6 +24,6 @@ func main() {
|
|||
|
||||
http.Handle("/", http.FileServer(http.Dir(*directory)))
|
||||
|
||||
//log.Printf("Serving %s on HTTP port: %s\n", *directory, *port)
|
||||
//log.Fatal(http.ListenAndServe(":"+*port, nil))
|
||||
log.Printf("Serving %s on HTTP port: %s\n", *directory, *port)
|
||||
log.Fatal(http.ListenAndServe(":"+*port, nil))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue