Skip to content

Commit 1064f39

Browse files
authored
Don't use unexported type in example code (Azure#19591)
1 parent 919f6f3 commit 1064f39

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdk/storage/azblob/service/examples_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@ package service_test
99
import (
1010
"context"
1111
"fmt"
12-
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
13-
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated"
1412
"log"
1513
"os"
1614
"time"
1715

16+
"github.com/Azure/azure-sdk-for-go/sdk/azcore"
1817
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
1918
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
2019
"github.com/Azure/azure-sdk-for-go/sdk/storage/azblob"
@@ -303,7 +302,7 @@ func Example_service_Client_NewClientWithUserDelegationCredential() {
303302
// Set current and past time and create key
304303
currentTime := time.Now().UTC().Add(-10 * time.Second)
305304
pastTime := currentTime.Add(48 * time.Hour)
306-
info := generated.KeyInfo{
305+
info := service.KeyInfo{
307306
Start: to.Ptr(currentTime.UTC().Format(sas.TimeFormat)),
308307
Expiry: to.Ptr(pastTime.UTC().Format(sas.TimeFormat)),
309308
}

0 commit comments

Comments
 (0)