aundis
aundis
> 解决了吗? 没
``` go func main() { req := map[string]any{ "id": "123", "doc": map[string]any{ "craft": nil, }, "fields": []string{"_id"}, } var args *UpdateByIdReq err := gconv.Struct(req, &args) if err != nil {...
> 您应该期望输出是 ,对吧?`` yes
> my fix should be correct Is this a bug?
> In Go, when you assign nil to a variable of type interface{}, that variable is actually an interface{} pointer to nil. So, when you try to print ARGS. Doc["craft"],...