serve

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(opts Options) http.Handler

Handler returns an http.Handler configured per opts.

Types

type Options

type Options struct {
	Root      string
	Host      string
	Port      int
	CORS      bool
	NoIndex   bool
	NoLog     bool
	LogWriter io.Writer
}

Options configures the file server behavior.

Jump to

Keyboard shortcuts

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