The following program
|
Answered by
mvertes
Mar 23, 2023
Replies: 3 comments
|
Has the landlord found a solution? |
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. |
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) |
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: