-
The following program
|
Beta Was this translation helpful? Give feedback.
Answered by
mvertes
Mar 23, 2023
Replies: 3 comments
-
Has the landlord found a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Looks like https://github.com/traefik/yaegi/blob/master/example/getfunc/getfunc_test.go#L26 might be what you want to try out. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Because of some limitations of Go reflect packages, the resolution of methods can not be performed outside of the interpreter context. What works is the following: v, err := intp.Eval("plugins_test.Test.Run") // Run method is obtained from within the interpreter, not reflect.
v.Call(nil) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mvertes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because of some limitations of Go reflect packages, the resolution of methods can not be performed outside of the interpreter context. What works is the following: