From bd6d130e1783af8dea005243a6939d57fbaa507a Mon Sep 17 00:00:00 2001 From: Jonny Stoten Date: Wed, 8 May 2024 13:12:40 +0100 Subject: [PATCH] Don't use builtin print function --- pkg/attest/example_verify_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/attest/example_verify_test.go b/pkg/attest/example_verify_test.go index a221073..7e80bff 100644 --- a/pkg/attest/example_verify_test.go +++ b/pkg/attest/example_verify_test.go @@ -2,6 +2,7 @@ package attest_test import ( "context" + "fmt" "os" "path/filepath" @@ -63,9 +64,9 @@ func ExampleVerify_remote() { panic(err) // failed policy or attestation signature verification } if policy { - print("policy passed: %v\n", policy) + fmt.Printf("policy passed: %v\n", policy) return // passed policy } // no policy found for image - print("no policy for image") + fmt.Printf("no policy for image") }