Add helper function `print_stdout` for debug purposes

dev
Bùi Đại Gia 2021-08-12 13:54:50 +07:00 committed by GitHub
parent 335b38028c
commit 5aad51045c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -245,6 +245,11 @@ var functions = map[string]govaluate.ExpressionFunction{
data := deserialization.GenerateJavaGadget(gadget, cmd, encoding)
return data, nil
},
// for debug purposes
"print_stdout": func(args ...interface{}) (interface{}, error) {
fmt.Println(args)
return true, nil
},
}
// HelperFunctions returns the dsl helper functions