Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRequire ¶
func MustRequire(path string)
MustRequire is the same as Require, but panics on an error.
func MustRequireValue ¶
MustRequireValue loads a specified file and returns a global value with a given name.
func Require ¶
Require adds a specified file (js or css) into the document and waits for it to load.
The function relies on a file extension to detect the type. If there is no extension in the file path, use specific function like Stylesheet or Script. As an alternative, append a '#.js' or '#.css' suffix to a file path.
func RequireLazy ¶
RequireLazy is the same as Require, but returns a function that will load the file on the first call.
func Stylesheet ¶
Stylesheet add a specified CSS file into the document and waits for it to load.
func StylesheetString ¶
func StylesheetString(data string)
StylesheetString loads a CSS stylesheet string into the DOM.
Types ¶
This section is empty.