Documentation
¶
Overview ¶
Package assets is the runtime helper a Go web app uses to consume pin's output: parse the lockfile, serve the vendored files, and emit HTML tags with integrity attributes.
Imports only lock — no fetcher, no HTTP — so servers that only render templates stay lean.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FS ¶
FS returns a sub-filesystem rooted at the lockfile's out directory. Pass an embed.FS that includes the vendored tree at outDir.
func SRI ¶
SRI returns the Subresource Integrity string for the named package's first file, suitable for direct use in a <script integrity=""> attribute when rendering tags by hand.
Types ¶
Click to show internal directories.
Click to hide internal directories.