Help us shape the future of Go! Take the 2026 Go Developer Survey

staticFileServer

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequestHandler

func LogRequestHandler(h http.Handler) http.Handler

func LogRequestSPAHandler

func LogRequestSPAHandler(h http.Handler, staticFileServer fs.FS, staticDir string) http.Handler

func SPAStaticServePath

func SPAStaticServePath(httpMux *http.ServeMux, urlPath string, embedFS fs.FS, staticDir string)

gw http Server mux urlPath - the url path, which the file server listents to eg: /, /static, /assets, /public staticDir - actual directory from which the files are served

func StaticServeAiPath

func StaticServeAiPath(gw *http.ServeMux, urlPath string, staticDir string)

gw http Server mux serves Ai images and other generated resources SPA is not active here urlPath - the url path, which the file server listents to eg: /, /static, /assets, /public staticDir - actual directory from which the files are served

Types

This section is empty.

Jump to

Keyboard shortcuts

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