Skip to content

How to allow for unobfuscated literal to remain in strings of binary? #613

Answered by mvdan
An00bRektn asked this question in Q&A
Discussion options

You must be logged in to vote

There's currently no way to turn off literal obfuscation for just one literal, as far as I can see in the code. Perhaps @lu4p can confirm. I don't think anyone has asked for it yet :)

You could use go:embed, and we currently do not obfuscate embedded bytes/strings at all. But we might in the future, so that might not be the best solution.

We do have a way to turn off obfuscating types, as you can see in the README, because that can affect or break reflection in programs. Perhaps we should also have a way to turn off literal obfuscation, for example via comment directives. I can imagine that it might also matter for performance in some hot paths, which is hard for us to predict unless we r…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@capnspacehook
Comment options

@An00bRektn
Comment options

@mvdan
Comment options

Answer selected by An00bRektn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants