【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})) } 對應
相關文章
相關標籤/搜索