https://github.com/barryz/gsorder
Reorders the fields of structure to optimize the amount of padding.
https://github.com/barryz/gsorder
memory-allocator struct
Last synced: 26 days ago
JSON representation
Reorders the fields of structure to optimize the amount of padding.
- Host: GitHub
- URL: https://github.com/barryz/gsorder
- Owner: barryz
- Created: 2018-03-22T06:03:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-04T07:54:34.000Z (about 7 years ago)
- Last Synced: 2024-06-20T00:40:57.379Z (over 1 year ago)
- Topics: memory-allocator, struct
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gsorder
`gsorder` is a command line tool that used for reorders the fields of structure in Go(lang) to optimize(minimize) the amount of padding.
## Installation
```bash
$go get -u github.com/barryz/gsorder
```
## Usage
```bash
$gsorder -pkg $your_go_pkg
```
## Inspiration
- [go-tools](https://github.com/dominikh/go-tools/tree/master/cmd/structlayout)
- [maligned](https://github.com/mdempsky/maligned)