diff --git a/README.md b/README.md index ccbf09f..53fce45 100644 --- a/README.md +++ b/README.md @@ -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. -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. +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://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(). \ No newline at end of file +Optionally, you can elect to not generate an automatic directory index by using FileServerNoIndex() in place of FileServer(). diff --git a/example/main.go b/example/main.go index 50a6eb2..c37fd92 100644 --- a/example/main.go +++ b/example/main.go @@ -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 */ diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..8e84d88 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module git.teamworkapps.com/shortcut/enhancedfileserver + +go 1.20