Don't use builtin print function

This commit is contained in:
Jonny Stoten
2024-05-08 13:12:40 +01:00
parent bd849d9b43
commit bd6d130e17

View File

@@ -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")
}