web

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package web holds the embedded static assets (CSS, JS, images) served by the web UI binary. The embed.FS is populated at compile time, so the production binary is fully self-contained with no external file system dependencies at runtime.

Index

Constants

This section is empty.

Variables

View Source
var StaticFS, _ = fs.Sub(staticFiles, "static") //nolint:errcheck // fs.Sub on a known valid path never errors

StaticFS is the sub-filesystem rooted at the "static" directory. Mount it at /static/ in the HTTP mux:

mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServerFS(web.StaticFS)))

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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