From ed49d6214d77418f430161909579219314680fef Mon Sep 17 00:00:00 2001 From: Andreas Auernhammer Date: Fri, 29 Dec 2023 00:50:16 +0100 Subject: [PATCH] kms: fix API key examples Signed-off-by: Andreas Auernhammer --- kms/example_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kms/example_test.go b/kms/example_test.go index 480cb41..1c13e07 100644 --- a/kms/example_test.go +++ b/kms/example_test.go @@ -12,21 +12,21 @@ import ( ) func ExampleParseAPIKey() { - key, err := kms.ParseAPIKey("AGaV6VXHasF0FnaB60WdCOeTZ8eTIDikL4zlN16c8NAs") + key, err := kms.ParseAPIKey("k1:d7cY/5k8HbBGkZpoy2hGmvkxg83QDBXsA/nFXDfTk2E") if err != nil { log.Fatal(err) } fmt.Println(key) // Output: - // AGaV6VXHasF0FnaB60WdCOeTZ8eTIDikL4zlN16c8NAs + // k1:d7cY/5k8HbBGkZpoy2hGmvkxg83QDBXsA/nFXDfTk2E } func ExampleAPIKey_Identity() { - key, err := kms.ParseAPIKey("AGaV6VXHasF0FnaB60WdCOeTZ8eTIDikL4zlN16c8NAs") + key, err := kms.ParseAPIKey("k1:d7cY/5k8HbBGkZpoy2hGmvkxg83QDBXsA/nFXDfTk2E") if err != nil { log.Fatal(err) } fmt.Println(key.Identity()) // Output: - // ea9826089311fe44d7590408ede9150f7c637b6cab0a91ee6fe1aa5d9fb366f6 + // h1:Rvxa7nj8zkL48CeDkN6LhpX+K7KK6uhIhpBOcTHNhWw }