Files
Ronni Skansing f5e6f53d75 update vendor
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
2026-05-24 09:57:07 +02:00

22 lines
518 B
Go

package js
// Function definition.
type Function struct {
// Name must be unique and not conflict with the function names in "helper.js"
Name string
// Definition holds the code of a js function from "helper.js",
// the js code is compressed by uglify-js.
Definition string
// Dependencies will be preloaded and assigned to the global js object "functions"
Dependencies []*Function
}
// Functions ...
var Functions = &Function{
Name: "functions",
Definition: "() => ({})",
Dependencies: nil,
}