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

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

View File

@ -1,10 +1,11 @@
package main
import (
"gitto.work/shortcut/enhancedfileserver"
"log"
"net/http"
"os"
"git.teamworkapps.com/shortcut/enhancedfileserver"
)
/* 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