Y
Hacker News
new
|
ask
|
show
|
jobs
by
thegeekpirate
754 days ago
Go doesn't rearrange struct fields, which is also why there's a linter/analyzer which shows you whether or not you could be using less memory with better field sorting
https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fie...