Closed sg3des closed 3 years ago
I don't think that this would be the right answer, as there will be structs to which you can't tag. A better idea would be to fix the reflect call to respect that the type is an Interface.
Thanks for PR, but I agree with @DeadlySurgeon this is not the right fix.
Hello, may be add something like this? thats also should help to resolve problem with errors like
reflect: NumField of non-struct type ...
- https://github.com/robertkrimen/otto/issues/390 But i'm afraid it will break backward compatibility.