mirror of https://github.com/daffainfo/nuclei.git
parent
3b8ec873eb
commit
c8307b2c83
|
@ -258,7 +258,7 @@ func HelperFunctions() map[string]govaluate.ExpressionFunction {
|
||||||
return functions
|
return functions
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddHelperFunction allows creation of additiona helper functions to be supported with templates
|
// AddHelperFunction allows creation of additional helper functions to be supported with templates
|
||||||
func AddHelperFunction(key string, value func(args ...interface{}) (interface{}, error)) error {
|
func AddHelperFunction(key string, value func(args ...interface{}) (interface{}, error)) error {
|
||||||
if _, ok := functions[key]; !ok {
|
if _, ok := functions[key]; !ok {
|
||||||
functions[key] = value
|
functions[key] = value
|
||||||
|
|
Loading…
Reference in New Issue