I find this situation unsatisfactory. See
https://github.com/golang/go/issues/51649 for my suggested fix.
-rob
On Fri, Jun 2, 2023 at 4:52 AM Ian Lance Taylor wrote:
> On Thu, Jun 1, 2023 at 11:48 AM christoph...@gmail.com
> wrote:
> >
> > I have a method that receives a reflect.Value as inpu
On Thu, Jun 1, 2023 at 11:48 AM christoph...@gmail.com
wrote:
>
> I have a method that receives a reflect.Value as input argument.
>
> When the method is given the argument reflect.ValueOf(nil), the methods
> Type(), IsNil(), or IsZero() panic. For instance, when I call the method
> IsZero() I s
I have a method that receives a reflect.Value as input argument.
When the method is given the argument reflect.ValueOf(nil), the methods
Type(), IsNil(), or IsZero() panic. For instance, when I call the method
IsZero() I see the panic message "panic: reflect: call of
reflect.Value.IsZero on ze