We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e7c9a commit feb31deCopy full SHA for feb31de
spa/fs.go
@@ -562,12 +562,11 @@ type fileHandler struct {
562
// To use the operating system's file system implementation,
563
// use http.Dir:
564
//
565
-// http.Handle("/", http.FileServer(http.Dir("/tmp")))
+// http.Handle("/", http.FileServer(http.Dir("/tmp")))
566
567
// To use an fs.FS implementation, use http.FS to convert it:
568
569
// http.Handle("/", http.FileServer(http.FS(fsys)))
570
-//
571
func FileServer(root http.FileSystem) http.Handler {
572
return &fileHandler{root}
573
}
0 commit comments