From 48dd2263a90b67a2d3997f5b3b1b7cf537a35ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 6 Sep 2024 14:30:44 +0100 Subject: [PATCH] fix printf issues spotted by the latest go vet --- main.go | 4 ++-- reverse.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 6d1f500..45a7f43 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,7 @@ func (f *seedFlag) Set(s string) error { } func usage() { - fmt.Fprintf(os.Stderr, ` + fmt.Fprint(os.Stderr, ` Garble obfuscates Go code by wrapping the Go toolchain. garble [garble flags] command [go flags] [go arguments] @@ -139,7 +139,7 @@ garble accepts the following flags before a command: `[1:]) flagSet.PrintDefaults() - fmt.Fprintf(os.Stderr, ` + fmt.Fprint(os.Stderr, ` For more information, see https://github.com/burrowers/garble. `[1:]) diff --git a/reverse.go b/reverse.go index 9151e91..e5e9e21 100644 --- a/reverse.go +++ b/reverse.go @@ -18,7 +18,7 @@ import ( func commandReverse(args []string) error { flags, args := splitFlagsFromArgs(args) if hasHelpFlag(flags) || len(args) == 0 { - fmt.Fprintf(os.Stderr, ` + fmt.Fprint(os.Stderr, ` usage: garble [garble flags] reverse [build flags] package [files] For example, after building an obfuscated program as follows: