handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

type FileHandler struct {
	// contains filtered or unexported fields
}

func New

func New(root string, showHidden bool, tmpls map[string]*template.Template) *FileHandler

func NewWithOptions

func NewWithOptions(root string, showHidden bool, tmpls map[string]*template.Template, opts Options) *FileHandler

func (*FileHandler) ServeHTTP

func (h *FileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Options

type Options struct {
	MaxPreviewBytes int64
	EnableUpload    bool
	MaxUploadBytes  int64
}

Jump to

Keyboard shortcuts

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