unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

Improve performance and cleanup code #25

Closed lu4p closed 4 years ago

lu4p commented 4 years ago

Improved performance by fixing some instances where the same file was read more than once.

Fixes #20 by adding a continue.

Remove own createDir function for recursively creating directories and switch to os.MkdirAll.

Remove unnecessary check for files which would not be copied in the first place.

Move multiple Checks whether a file is a .go file to a function for better readability

lu4p commented 4 years ago

@unixpickle any comments?

unixpickle commented 4 years ago

This looks really good. Sorry I didn't notice this earlier. Will take a closer look soon and see about merging. Glad you took the initiative to make these improvements!

lu4p commented 4 years ago

@unixpickle Ready for merge?