handler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileServer

func FileServer(root http.FileSystem) http.Handler

This is a re-implementation of default http.FileServer handler, written to render custom HTML/CSS.

Types

type FileInfo

type FileInfo struct {
	Name  string // file name
	Path  string // file path
	IsDir bool   // is file a directory
}

FileInfo contains basic info about a file.

Jump to

Keyboard shortcuts

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