web

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package web serves the compiled SvelteKit UI embedded in the binary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler() http.Handler

func InlineScriptHashes

func InlineScriptHashes(files fs.FS) []string

InlineScriptHashes hashes the body of every <script> without a src attribute in files/index.html, in document order, without duplicates.

func NewHandler

func NewHandler(files fs.FS) http.Handler

func ScriptHashes

func ScriptHashes() []string

ScriptHashes returns the CSP sources ('sha256-…') of the inline scripts of the embedded index.html (SvelteKit's bootstrap); empty if the UI is not built.

Types

This section is empty.

Jump to

Keyboard shortcuts

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