-
The following program
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Has the landlord found a solution? |
Beta Was this translation helpful? Give feedback.
-
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.
-
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.
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: