简体   繁体   中英

Find which struct field is unequal when using reflect.DeepEqual

How do I find which struct field is different when comparing two structs using reflect.DeepEqual() . When I print the struct values then I don't see any difference between the 2 struct values but still the reflect.DeepEqual() method returns false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM