Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rule执行go的function时,支持返回多个值吗? #58

Closed
Little-Timo opened this issue Jan 12, 2023 · 3 comments
Closed

rule执行go的function时,支持返回多个值吗? #58

Little-Timo opened this issue Jan 12, 2023 · 3 comments

Comments

@Little-Timo
Copy link

比如go的一个函数myFunc,在入rule映射为MyFunc:

func myFunc()(int, string){
}

在rule中应用:

rule "ruleId"
begin
    a, str := MyFunc()
    Print(str)
end

实际在执行rule的过程中,只能拿到a的值,str的值是拿不到的吗,后续能支持吗

@johnyanchen
Copy link

啊,这个不支持返回多个值?

@johnyanchen
Copy link

image 除非改代码

@littetimo567
Copy link

感觉不是这个意思+_+,是在rule自己的函数拿不到多个返回

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants