Initial import
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// HTTP file system request handler
|
// HTTP file system request handler
|
||||||
|
|
||||||
package http
|
package enhancedfileserver
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitto.work/shortcut/enhanced-file-server"
|
"gitto.work/shortcut/enhancedfileserver"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
)
|
)
|
||||||
@@ -11,5 +11,5 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
dir, err := os.Getwd()
|
dir, err := os.Getwd()
|
||||||
|
|
||||||
log.Fatal(http.ListenAndServe(":12345", enhanced-file-server.FileServer(http.Dir(dir))))
|
log.Fatal(http.ListenAndServe(":12345", enhancedfileserver.FileServer(http.Dir(dir))))
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user