Rewriting the first struct into the second (reordering fields) can improve performance and reduce memory usage due to better alignment:

type BadStruct struct {
age uint8
IdCardNumber uint64
DateOfBirth uint16
}

type GoodStruct struct {
age uint8
DateOfBirth uint16
IdCardNumber uint64
}

Reason: Group smaller fields together to minimize padding inserted by the compiler for alignment.