traefik / yaegi

Yaegi is Another Elegant Go Interpreter

Home Page:https://pkg.go.dev/github.com/traefik/yaegi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no gc ?

kurimi1 opened this issue · comments

The following program sample.go triggers an unexpected result

package main

func main() {
  v, _ := p.Inter.Eval(fmt.Sprintf("%s.CallPlugin", n))
  callPlugin := v.Interface().(func(*response.TWebResponse, string, string) response.Plugin)
  res := callPlugin(r, pluginName, pluginType)
}

Expected result

no gc?

Got

no gc?

Yaegi Version

v0.14.2

Additional Notes

image

I'm sorry, I cannot reproduce nor investigate your issue with so few data. Could you provide a complete reproducible and test case which I can run both with to Go compiler and yaegi ?

I know it takes some effort, but I really need this to make progress, thanks.