static

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StaticFs embed.FS

Functions

func GetStaticSHA256

func GetStaticSHA256() string

GetStaticSHA256 returns the SHA256 hash of all the files combined in the static directory.

func GetVersionedFilePath

func GetVersionedFilePath(filePath string) string

GetVersionedFilePath returns a versioned file path by appending a shortened SHA256 hash of the static filesystem to the query parameter.

The hash is truncated to the first 8 characters for brevity.

This function also prepends the configured path prefix so that static files are correctly referenced in HTML when the application is served under a subpath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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