This package is designed to enhance Go's built-in http file server function and provide additional features.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Your Name 49cae39a0e
spelling
4 years ago
example Updated readmes and example 5 years ago
.gitignore Initial import 5 years ago
README.md spelling 4 years ago
enhanced-file-server.go Missed a spot 4 years ago

README.md

enhancedfileserver

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.

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.

Optionally, you can elect to not generate an automatic directory index by using FileServerNoIndex() in place of FileServer().