Initial import

This commit is contained in:
Your Name
2018-08-24 13:01:44 +00:00
parent 0d78f52e59
commit 0eab5ecd7f
4 changed files with 891 additions and 1 deletions

15
example/main.go Normal file
View File

@@ -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))))
}