Say I have a struct type that has int64 and bools, along with embedded types that have more int64 and bool type fields.
type T1 struct {
f1 int64
f2 int64
f3 bool
T2 T2
}
type T2 struct {
f4 int64
f5 int64
f6 bool
}
Now using all the structs fields/properties, I want to generate a hashcode.
The aim of this is so I can determine if the contents of the instance has changed but comparing the before/after hashcode value.
So if T1 instance has changed i.e. any of its own properties Then the value of the hash should be different.