Documentation
¶
Overview ¶
This package provides an HTTP handler for serving a Single Page Application (SPA) from embedded files using Go's embed package. It serves the SPA's static files and ensures that all non-existent routes fall back to the main index.html file, enabling client-side routing.
NOTE: Embedding requires the files to be present at compile time and must be in a subdirectory. For this reason, this package is located in the 'web' directory, and the SPA files should be in 'web/dist'.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.