1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2025-09-19 05:31:23 +02:00

fs: Update comments

This commit is contained in:
adnano 2021-01-14 22:27:56 -05:00
parent 7896015511
commit 5721d60ff5
2 changed files with 2 additions and 3 deletions

@ -106,7 +106,6 @@ func (c *Client) Do(req *Request) (*Response, error) {
}
func (c *Client) do(conn *tls.Conn, req *Request) (*Response, error) {
// Write the request
w := bufio.NewWriter(conn)

4
fs.go

@ -15,7 +15,7 @@ func init() {
}
// FileServer takes a filesystem and returns a Responder which uses that filesystem.
// The returned Responder sanitizes paths before handling them.
// The returned Responder cleans paths before handling them.
//
// TODO: Use io/fs.FS when available.
func FileServer(fsys FS) Responder {
@ -43,7 +43,7 @@ func (fsh fsHandler) Respond(w *ResponseWriter, r *Request) {
// FS represents a filesystem.
//
// TODO: Replace with io/fs.FS when available
// TODO: Replace with io/fs.FS when available.
type FS interface {
Open(name string) (File, error)
}