Hacker News new | ask | show | jobs
by geetarista 4162 days ago
gofmt ftw ;)
2 comments

Formatting along those lines are just one vector that's used. This gives a lot of weight to the underlying AST of the code, so in order obfuscate, you'd have to have a program that scrambles variable names, placement and content of control blocks, etc. Basically, you'd need less an autoformatter and more an obfuscator, probably coupled with a deobfuscator to make the code as generic as possible.
Exactly my thoughts