Documentation
¶
Overview ¶
Package static holds the embedded web assets and their content versions. It is a leaf package so that the templates and the readiness middleware can link versioned asset URLs.
flag-icons is flag-icons 7.6.0 (MIT, flag-icons/LICENSE) from the npm tarball: the 4x3 flags, and css/flag-icons.min.css without the 1x1 (".fis") rules, whose flags are not vendored. The UI uses only the "fi fi-<cc>" classes (templates.CountryFlag).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var FS embed.FS
FS holds the assets, served under /static/ at their names in this directory.
Functions ¶
func URL ¶
URL returns the URL of the named file with its version in the v query parameter, for example /static/ui.js?v=0123456789ab. The URL changes when the content changes, so the static handler lets browsers keep a file fetched through it for a year. URL panics for a name that is not embedded, so a mistyped asset fails in tests.
Types ¶
This section is empty.