From 745d089a9dde5d8b5a76a048c960b0545b4da5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 12 Oct 2022 13:36:24 +0100 Subject: [PATCH] README: suggest how to obfuscate all the packages This mode is well tested, and may soon become the default, but it wasn't properly documented yet. For #594. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7103da7..4d05c96 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ order to: The tool obfuscates the packages matching `GOGARBLE`, a comma-separated list of glob patterns of module path prefixes, as documented in `go help private`. +To obfuscate all the packages in a build, use `GOGARBLE=*`. When `GOGARBLE` is empty, it assumes the value of `GOPRIVATE`. When `GOPRIVATE` is also empty, then `GOGARBLE` assumes the value of the current module path, to obfuscate all packages under the current module.