2 ms·
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
by thegeekpirate 2y 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/fieldalignment https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/fie...