I want to disable some functions, but seems like is not working
program, err:=expr.Compile(query, expr.Option(func(c*conf.Config) {
c.Disabled["all"] =trueforname:=rangec.Disabled {
fmt.Println("Disabled...", name)
}
}))
iferr!=nil {
returnnil, fmt.Errorf("error compiling query: %v", err)
}I even tested with the builtin function, but doesn't work
./cmd-q"all(sandboxes, .Name startsWith 'frontend')"Compilingquery...2all(sandboxes, .NamestartsWith 'frontend') forentitytype...sandboxOptions... [0x5f3ae00x5f3ac00x5f3aa00x5f41800x5f3a40]
Disabled...allfalse
Expected
To see an error expr.Compile
I want to disable some functions, but seems like is not working
I even tested with the builtin function, but doesn't work
Expected
To see an error
expr.Compile