update repo and modules
This commit is contained in:
parent
49cae39a0e
commit
948ff87877
|
@ -5,6 +5,6 @@ This package is designed to enhance Go's built-in http file server function and
|
||||||
Where the native function's file listing was just an alphabetical set of files, this one adds file size, date, owner/group, and sorting capability.
|
Where the native function's file listing was just an alphabetical set of files, this one adds file size, date, owner/group, and sorting capability.
|
||||||
|
|
||||||
This can be a drop-in replacement and is largely based on the original code. See the included example for a simple use,
|
This can be a drop-in replacement and is largely based on the original code. See the included example for a simple use,
|
||||||
or https://gitto.work/shortcut/httphere for something more practical.
|
or https://git.teamworkapps.com/shortcut/httphere for something more practical.
|
||||||
|
|
||||||
Optionally, you can elect to not generate an automatic directory index by using FileServerNoIndex() in place of FileServer().
|
Optionally, you can elect to not generate an automatic directory index by using FileServerNoIndex() in place of FileServer().
|
|
@ -1,10 +1,11 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitto.work/shortcut/enhancedfileserver"
|
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"git.teamworkapps.com/shortcut/enhancedfileserver"
|
||||||
)
|
)
|
||||||
|
|
||||||
/* Most simple example of using enhanced-file-server package. Will serve from the current directory on port 12345 */
|
/* Most simple example of using enhanced-file-server package. Will serve from the current directory on port 12345 */
|
||||||
|
|
Loading…
Reference in New Issue