unixpickle / gobfuscate

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

Does not support -tags and "+build XXX" flag #18

Closed CaledoniaProject closed 4 years ago

CaledoniaProject commented 5 years ago

I have two go source files that have duplicated variables. With gobfuscate I got errors like:

xx.go: XXXX redeclared in this block
yy.go:    other declaration of XXXX

With go cli I selectively build the binary with -tags=XXX command line option and add build options in go source files, e.g

// +build XXX

Can you add a flag that support "Additional golang options"? I need to add -tags=XXX flag