Detect and fix suboptimal struct field layout in Go: reduces padding and GC pointer bytes, rewrites files while preserving comments. A drop-in fieldalignment replacement.

Last push 1 week ago

alignment analyzer cli fieldalignment garbage-collector go go-analysis golang linter memory memory-optimization padding performance static-analysis struct struct-alignment

Created

Mar 2023

Total stars

1,091

7 days

0

30 days

+6

12 months

+211

Star trends

README badge

Best of Go badge for dkorunic/betteralign
[![Best of Go](https://bestofgo.dev/badge/dkorunic/betteralign.svg)](https://bestofgo.dev/dkorunic/betteralign)