static

package
v0.0.0-...-d761283 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 3 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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