https://github.com/masterminds/go-fileserver
A Go Fileserver where you can specify custom NotFound and Error response handlers.
https://github.com/masterminds/go-fileserver
Last synced: about 2 months ago
JSON representation
A Go Fileserver where you can specify custom NotFound and Error response handlers.
- Host: GitHub
- URL: https://github.com/masterminds/go-fileserver
- Owner: Masterminds
- Created: 2015-04-04T11:37:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-04T11:38:20.000Z (about 10 years ago)
- Last Synced: 2025-03-24T12:48:02.997Z (2 months ago)
- Language: Go
- Size: 102 KB
- Stars: 48
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fileserver
This project is a file server written in [Go](http://golang.org). The difference
from the [standard library file server](http://golang.org/pkg/net/http/#FileServer)
is that you can specify custom `Error` and `NotFound` handlers to respond with
rather than being stuck using the built-in ones that only respond with text._Note, this project is a fork of the Go source for serving files. The difference
is just what was needed to implement the custom handlers._## Go in Practice
This was inspired by the development of the book
[Go in Practice](http://manning.com/butcher/) when writing about file service
and solving some common problems.## License
The license is the same as [Go itself](https://github.com/golang/go/blob/master/LICENSE).## Todo
- Move the tests over.