Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

envconfig: sort strcut fields for reduce memory #51

Merged
merged 1 commit into from Apr 11, 2022

Commits on Apr 10, 2022

  1. envconfig: sort struct fields to reduce memory

    Sort struct fields suggested by fieldalignment. But continue to sort
    alphabetical order as much as possible.
    
    $ go vet -vettool=$(which fieldalignment) ./...
    ./envconfig.go:188:21: struct with 32 pointer bytes could be 24
    ./envconfig.go:222:14: struct of size 80 could be 72
    
    Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
    zchee committed Apr 10, 2022
    Copy the full SHA
    691b62b View commit details
    Browse the repository at this point in the history