feat: call function without argument

This commit is contained in:
debugtalk
2021-10-03 12:30:53 +08:00
parent eca8af71f1
commit 5ac8647591
3 changed files with 24 additions and 10 deletions

View File

@@ -171,7 +171,7 @@ func mergeVariables(variables, overriddenVariables map[string]interface{}) map[s
// callFunc call function with arguments
// only support return at most one result value
func callFunc(funcName string, arguments []interface{}) (interface{}, error) {
func callFunc(funcName string, arguments ...interface{}) (interface{}, error) {
function, ok := builtin.Functions[funcName]
if !ok {
// function not found