defaults

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package defaults embeds the built-in static assets (index.html, 404.html, style.css) that ship with the binary. These are used as a fallback when the configured files.root directory does not contain those files, ensuring that the server always has sensible default pages regardless of deployment layout.

Embedded asset paths use the "public/" prefix, e.g.:

data, err := fs.ReadFile(defaults.FS, "public/index.html")

Index

Constants

This section is empty.

Variables

FS holds the embedded public/ directory tree. Consumers should read files via fs.ReadFile(FS, "public/<name>") where <name> is one of: index.html, 404.html, style.css.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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