Question - How can I pass a struct to a scripted function #1271
-
I wrote this toy example to illustrate my question - when I run this I get an error from Yaegi (
I get the followinf stack trace on the go playground:
Go Playground link: https://play.golang.org/p/udc3O_4fT5C |
Beta Was this translation helpful? Give feedback.
Answered by
ashneverdawn
Dec 27, 2019
Replies: 1 comment 4 replies
-
Don't know if there's a way to do it without reflection, but here's what I did which worked for me:
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
mvertes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't know if there's a way to do it without reflection, but here's what I did which worked for me: