internal

package
v0.0.0-...-90a12ec Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// build time (set during build)
	BuildTime string
	// set by the build process (so has to be exported), but use `Debug` instead since
	// it's a boolean
	DebugFlag string
	Debug     bool = false
)

Functions

func MustSub

func MustSub(fsys fs.FS, path string) fs.FS

func RegisterRoutes

func RegisterRoutes(
	handler *http.ServeMux,
	assets fs.FS,
	articleController controller.ArticleController,
)

func StaticHandler

func StaticHandler(
	filesystem fs.FS,
	options ...func(*staticHandlerConfig),
) http.Handler

func WithCacheControlMaxAge

func WithCacheControlMaxAge(maxAge int) func(*staticHandlerConfig)

func WithPath

func WithPath(path string) func(*staticHandlerConfig)

func WithSubtree

func WithSubtree(subtree string) func(*staticHandlerConfig)

Types

This section is empty.

Directories

Path Synopsis
templ: version: v0.2.778
templ: version: v0.2.778

Jump to

Keyboard shortcuts

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