Parallel arrays pt. 2
In the previous post we ended up with Go code for array of structs and struct of arrays code:
const userMetadataSize = 8
type userMetadata [userMetadataSize]byte
type User struct {
metadata userMetadata
age uint8
}
type Users []User
...
softwarebits.hashnode.dev3 min read