mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 16:37:18 +02:00
22 lines
518 B
Go
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,
|
|
}
|