Documentation
¶
Overview ¶
This example demonstrates how to serve static files from your filesystem.
Boot the server:
$ go run ./examples/fileserver
Client requests (the server speaks HTTPS with a self-signed certificate):
$ curl -k https://localhost:3333/files/ <pre> <a href="notes.txt">notes.txt</a> </pre> $ curl -k https://localhost:3333/files/notes.txt Notessszzz
Click to show internal directories.
Click to hide internal directories.