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 ¶ func New(prefix string, root fs.FS) http.Handler 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. Source Files ¶ View all Source files handler.go Directories ¶ Show internal Expand all Path Synopsis console login Click to show internal directories. Click to hide internal directories.