1-line fileserver

This commit is contained in:
George Shaw 2017-10-17 14:34:46 -05:00
parent 91025c552c
commit a4f4d44c89

View file

@ -54,4 +54,9 @@ func main() {
log.Print("Listening on localhost:2082")
http.ListenAndServe("localhost:2082", g)
// This entire program can be replaced with the following:
/*
log.Fatal(http.ListenAndServe('localhost:2082', http.FileServer(http.Dir('private/'))));
*/
}