/go-fileserver

A Go Fileserver where you can specify custom NotFound and Error response handlers.

Primary LanguageGo

Fileserver

This project is a file server written in Go. The difference from the standard library file server 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 when writing about file service and solving some common problems.

License

The license is the same as Go itself.

Todo

  • Move the tests over.