Initial import
This commit is contained in:
1 parent
0d78f52e59
commit
0eab5ecd7f
4 files changed
+891
-1
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"gitto.work/shortcut/enhanced-file-server"
|
||||
"net/http"
|
||||
"os"
|
||||
)
|
||||
|
||||
/* Most simple example of using enhanced-file-server package. Will serve from the current directory on port 12345 */
|
||||
|
||||
func main() {
|
||||
dir, err := os.Getwd()
|
||||
|
||||
log.Fatal(http.ListenAndServe(":12345", enhanced-file-server.FileServer(http.Dir(dir))))
|
||||
}
|
||||
Reference in new issue
Block a user