public

package
v1.19.0-dev Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: MIT Imports: 11 Imported by: 67

Documentation

Index

Constants

View Source
const AssetsURLPathPrefix = "/assets/"

AssetsURLPathPrefix is the path prefix for static asset files

Variables

This section is empty.

Functions

func AssetsHandlerFunc added in v1.17.0

func AssetsHandlerFunc(opts *Options) http.HandlerFunc

AssetsHandlerFunc implements the static handler for serving custom or original assets.

Types

type Options

type Options struct {
	Directory   string
	Prefix      string
	CorsHandler func(http.Handler) http.Handler
}

Options represents the available options to configure the handler.

Jump to

Keyboard shortcuts

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