chi: github.com/go-chi/chi/_examples/fileserver Files

Command fileserver

FileServer =========== This example demonstrates how to serve static files from your filesystem.

Boot the server: ---------------- $ go run main.go

Client requests: ---------------- $ curl http://localhost:3333/files/ <pre> <a href="notes.txt">notes.txt</a> </pre>

$ curl http://localhost:3333/files/notes.txt Notessszzz

Package Files

main.go

Package main imports 6 packages (graph). Updated 2020-04-07. Refresh now. Tools for package owners.