My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Memory Alignment in Go

Ida Hansen's photo
Ida Hansen
·Apr 19, 2017

Type alignment (or value address alignment) guarantees are the requirements for Go compilers made by Go specifications. If the alignment guarantee of a type T is n, then the address of every value of type T must be a multiple of n at run time.