assets

package
v0.2.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedSPA embed.FS

Functions

func GetSPAFileSystem

func GetSPAFileSystem() http.FileSystem

GetSPAFileSystem returns the embedded SPA file system for use with http.FileServer

func ServeSPA

func ServeSPA(w http.ResponseWriter, r *http.Request)

ServeSPA serves the embedded SPA with proper content types and SPA routing This is kept for backward compatibility

func ServeSPAWithPath

func ServeSPAWithPath(w http.ResponseWriter, r *http.Request, webappPath string)

ServeSPAWithPath serves the embedded SPA with a custom webapp path

Types

This section is empty.

Jump to

Keyboard shortcuts

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