【Golang】判断相等的deepequal

Values of distinct types are never deeply equal. 不一样类型的值不会深度相等web type S1 struct { Field int } type S2 struct { Field int } func main() { fmt.Println(reflect.DeepEqual(S1{1}, S2{1})) } 对应
相关文章
相关标签/搜索