2018-11-07 16:34:31 +00:00
|
|
|
# enhancedfileserver
|
2018-08-24 11:57:26 +00:00
|
|
|
|
2018-08-24 13:01:44 +00:00
|
|
|
This package is designed to enhance Go's built-in http file server function and provide additional features.
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2023-04-21 16:29:57 +00:00
|
|
|
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.
|
2018-11-06 15:46:28 +00:00
|
|
|
|
2023-04-21 16:29:57 +00:00
|
|
|
Optionally, you can elect to not generate an automatic directory index by using FileServerNoIndex() in place of FileServer().
|