package static import ( "crypto/sha256" "embed" "encoding/hex" ) //go:embed css/* js/* fonts/* icons/* favicon.svg var FS embed.FS //go:embed icons/hugeicons-sprite.svg var SpriteSVG string //go:embed css/app.css var AppCSS string //go:embed js/app.js var AppJS string func AssetVersion() string { h := sha256.New() _, _ = h.Write([]byte(AppCSS)) _, _ = h.Write([]byte(AppJS)) return hex.EncodeToString(h.Sum(nil))[:10] }