You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: shares_client_example_test.go
    path of file: ./repos/azure-sdk-for-go/sdk/resourcemanager/datashare/armdatashare
    
    the code of the file until where you have to start completion: //go:build go1.18
// +build go1.18

// Copyright (c) Micro
    
func ExampleSharesClient_NewListSynchronizationsPager() {
	cred, err := azidentity.NewDefaultAzureCredential(nil)
	if err != nil {
		log.Fatalf("failed to obtain a credential: %v", err)
	}
	ctx := context.Background()
	clientFactory, err := armdatashare.NewClientFactory("<subscription-id>", cred, nil)
	if err != nil {
		log.Fatalf("failed to create client: %v", err)
	}
	pager := clientFactory.NewSharesClient().NewListSynchronizationsPager("SampleResourceGroup", "Account1", "Share1", &armdatashare.SharesClientListSynchronizationsOptions{SkipToken: nil,
		Filter:  nil,
		Orderby: nil,
	})
	for pager.More() {
		page, err := pager.NextPage(ctx)
		if err != nil {
			log.Fatalf("failed to advance page: %v", err)
		}
		for _, v := range page.Value {
			// You could use page here. We use blank identifier for just demo purposes.
			_ = v
		}
		// If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes.
		// page.ShareSynchronizationList = armdatashare.ShareSynchronizationList{
		// 	Value: []*armdatashare.ShareSynchronization{
		// 		{
		// 			ConsumerName: to.Ptr("abc@yahoo.com"),
		// 			ConsumerTenantName: to.Ptr("nda"),
		// 			DurationMs: to.Ptr[int32](2000),
		// 			EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-14T04:47:52.961Z"); return t}()),
		// 			Message: to.Ptr("nda"),
		// 			StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-11-14T04:47:52.961Z"); return t}()),
		// 			Status: to.Ptr("Completed"),
		// 			SynchronizationID: to.Ptr("runId"),
		// 			SynchronizationMode: to.Ptr(armdatashare.SynchronizationModeIncremental),
		// 	}},
		// }
	}
}