staticui

package
v1.0.0-alpha.24 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package staticui serves an embedded SPA under a URL prefix with trailing-slash redirect and index.html fallback for client-side routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(prefix string, root fs.FS) http.Handler

New returns an http.Handler that serves static files from root under prefix. prefix is normalized to "/segment" (no trailing slash); requests to prefix without a trailing slash receive a permanent redirect to prefix+"/".

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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