A brief exploration of variable alignment in Go, referencing the Go language specification and the unsafe.Alignof function. The author acknowledges limited practical experience with memory alignment but shares the relevant spec quotes and GoDoc explanation: alignment requires that a variable's memory address be a multiple of its type's alignment factor, expressed as uintptr(unsafe.Pointer(&x)) % unsafe.Alignof(x) == 0.
1 Impression