dkorunic / betteralign

Make your Go programs use less memory (maybe)
BSD 3-Clause "New" or "Revised" License
671 stars 14 forks source link

Support exclude_dirs & exclude_files flags #17

Open adrienlucbert opened 7 hours ago

adrienlucbert commented 7 hours ago

Fixes #16

This is a draft proposal. I'm yet unhappy with the tests and some of the code, I'll rewrite that before considering merging.
What do you think of this approach @dkorunic?

Usage examples:

betteralign -exclude_dirs "a/b" -apply ./a/...
betteralign -exclude_files "a/b/*" -exclude_dirs "c" ./...

My concerns at the moment: