handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package handler defines common HTTP handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File string

File defines the path of a static file to be served by the server.

func (File) Handler

func (f File) Handler(w http.ResponseWriter, r *http.Request)

Handler will serve the file set on this handler.

Jump to

Keyboard shortcuts

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