Versions in this module Expand all Collapse all v0 v0.0.7 May 30, 2026 v0.0.6 May 29, 2026 Changes in this version + func CheckPortAvailable(port int) bool + func EnsureFrontendDevServer(ctx context.Context, routePrefix string) (int, chan struct{}, error) + func FindAvailablePort(startPort int, maxAttempts int) (int, error) + func FormatTemplateHtml(opts FormatOptions) (string, error) + func Init(fs embed.FS, tmpl string) + func JoinRoutePrefix(routePrefix string, requestPath string) string + func NormalizeRoutePrefix(prefix string) string + func ProxyDev(mux *http.ServeMux, vitePort int, routePrefix string) error + func RegisterAPI(mux *http.ServeMux) error + func Serve(port int, dev bool, routePrefix string) error + func ServeComponent(port int, opts ServeOptions) error + func SetDataDir(dataDir string) + func Static(mux *http.ServeMux, opts StaticOptions) error + type FormatOptions struct + Component string + ComponentProps string + Render string + Title string + type ServeOptions struct + Dev bool + Route func(mux *http.ServeMux) error + RoutePrefix string + Static StaticOptions + type StaticOptions struct + IndexHtml string + RoutePrefix string