From fe9e1d43593af57d58ab5ed04119c2ca50607692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Pokorn=C3=BD?= Date: Fri, 15 Nov 2024 11:37:03 +0100 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=9A=A8=20fix=20f=20variants?= =?UTF-8?q?=20of=20the=20print=20priting=20only=20single=20value.=20(#77)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options_example_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/options_example_test.go b/options_example_test.go index ef68611..cba7113 100644 --- a/options_example_test.go +++ b/options_example_test.go @@ -28,7 +28,7 @@ func ExampleWithEnvPrefix() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Foo from the variable with prefix } @@ -54,7 +54,7 @@ func ExampleFromEnv() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Foo from different variable } @@ -166,7 +166,7 @@ func ExampleNoEnv() { return } - fmt.Printf(cfg.Foo) + fmt.Print(cfg.Foo) // Output: Default Foo value }