static

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

static package implements a http.Handler for serving static files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWithPlugin

func NewWithPlugin(p iface.Plugin, filesys fs.FS, prefix string) (*static, error)

Create a new static serving task, with a specific filesystem and path for the static files. If the path is empty, then the root of the filesystem is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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