How to: [⏫](#contents) Detect sub-optimal struct layout with [betteralign](https://github.com/dkorunic/betteralign)
This tool detect structs that would use less memory if their fields were sorted and optionally sort such fields. — [@dkorunic](https://github.com/dkorunic)

```
betteralign -apply ./...
```

Requirements
```
go install github.com/dkorunic/betteralign/cmd/betteralign@latest
```