I’m on my phone and can’t take an in-depth look right now, but I think you have to use an interface type as your Config
type; it can’t be a struct.
I answered a related question a few hours ago here. See the part about interface types and the myReader
type I used in my example.