command
Version:
v5.2.0
Opens a new window with list of versions in this module.
Published: Dec 14, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.