Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeStaticHandlerFunc ¶
func ServeStaticHandlerFunc(staticFilePath string) http.HandlerFunc
ServeStaticHandlerFunc inspects the URL path to locate a file within the static dir on the SPA handler. If a file is found, it will be served. If not, the file located at the index path on the SPA handler will be served. This is suitable behavior for serving an SPA (single page application).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.