fileserver

command
v5.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL