assets

package
v0.410.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package assets contains the embedded client assets and helpers used by JaWS setup code.

Index

Constants

View Source
const ISO8601 = "2006-01-02"

ISO8601 is the date format used by date input widgets (YYYY-MM-DD).

Variables

View Source
var DefaultCookieName string

DefaultCookieName holds the default JaWS cookie name. It will be generated from the executable name, or "jaws" if that fails.

View Source
var JavascriptText []byte

JavascriptText is the source code for the client-side JaWS JavaScript library.

View Source
var JawsCSS []byte

JawsCSS is the source code for the client-side JaWS stylesheet.

Functions

func JawsKeyAppend

func JawsKeyAppend(b []byte, jawsKey uint64) []byte

JawsKeyAppend appends the JaWS key as a string to the buffer.

func JawsKeyString

func JawsKeyString(jawsKey uint64) string

JawsKeyString returns the string to be used for the given JaWS key.

func JawsKeyValue

func JawsKeyValue(jawsKey string) uint64

JawsKeyValue parses a key string, as returned by JawsKeyString, into a uint64.

func MakeCookieName

func MakeCookieName(exename string) (cookie string)

MakeCookieName creates a cookie-safe name from an executable path.

func PreloadHTML

func PreloadHTML(urls ...*url.URL) (htmlCode, faviconURL string)

PreloadHTML returns HTML code to load the given resources efficiently.

JavaScript and CSS files are emitted as script and stylesheet tags. Other recognized resources are emitted as preload tags. Favicon image URLs are returned separately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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