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

Rabbitmq libraries failed

roman-yerin opened this issue · comments

The following traefik plugin sample.go triggers an unexpected result

package plugin
import(
  amqp "github.com/rabbitmq/amqp091-go"
)

Expected result

I expect the traefik plugin will load

Got

The plugin failed to load with the following import error

amqp091-go/channel.go:425:18: cannot use type func(amqp091.frame) as type func(*struct {},amqp091.frame)

Yaegi Version

0.15.1

Additional Notes

Even if fix this import error changing the library code (which is flawlessly works natively), the yaegi fails in many other places.
This one https://github.com/Azure/go-amqp doesn't work either.