You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, please excuse me for asking here. https://community.traefik.io/c/yaegi seems a dead link and the community page doesn't have a yaegi section. Please close if inappropriate.
Background
I'd like to
a := "foo"
interp.Set("pkg.Vars.B", a)
instead of
interp.Eval("pkg.Vars.B := \"foo\"")
which requires individual handling per type. Set could follow Go's assignability rules.
Workarounds
Use Eval()
The text was updated successfully, but these errors were encountered:
What would it take to implement something like this? While Evaling is straightforward for simple types it gets much more ugly and may require additional parsing with e.g. assigning a time.Time. It would be really nice to do this from an already initialised time.
Proposal
First, please excuse me for asking here. https://community.traefik.io/c/yaegi seems a dead link and the community page doesn't have a yaegi section. Please close if inappropriate.
Background
I'd like to
instead of
which requires individual handling per type.
Set
could follow Go's assignability rules.Workarounds
Use
Eval()
The text was updated successfully, but these errors were encountered: