update repo and modules

This commit is contained in:
Your Name 2023-04-21 11:29:57 -05:00
parent 49cae39a0e
commit 948ff87877
3 changed files with 8 additions and 4 deletions

View File

@ -4,7 +4,7 @@ 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().

View File

@ -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 */

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module git.teamworkapps.com/shortcut/enhancedfileserver
go 1.20