Use control flow obfuscation in Go code
masterTo obfuscate a specific function, add the //garble:controlflow comment directly above the function definition. You can optionally pass parameters to fine-tune the obfuscation intensity.
Default usage:
//garble:controlflow
func main() {
println("Hello world!")
}Advanced usage with parameters:
//garble:controlflow block_splits=max junk_jumps=max flatten_passes=max
func main() {
println("Hello world!")
}// Obfuscate with maximum parameters
//garble:controlflow block_splits=max junk_jumps=max flatten_passes=max
func main() {
println("Hello world!")
}