aundis

Results 6 comments of 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 {...

> 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"],...