Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions documentation/new-version-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@ Example: Creating a Resource Group

***Import the packages***
```go
import {
import (
"contexts"
"github.com/Azure/azure-sdk-for-go/sdk/armcore"
"github.com/Azure/azure-sdk-for-go/sdk/resources/armresources"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/to"
}
)
```

***Define some global variables***
Expand All @@ -183,7 +184,7 @@ func createResourceGroup(ctx context.Context, connection *armcore.Connection) (a
Location: to.StringPtr(location),
}

return rgClient.CreateOrUpdate(context.Backgroud(), resourceGroupName, param, nil)
return rgClient.CreateOrUpdate(context.Background(), resourceGroupName, param, nil)
}
```

Expand All @@ -204,7 +205,7 @@ func main() {
if err != nil {
log.Fatalf("cannot create resource group: %+v", err)
}
log.Printf("Resource Group %s created", *resourceGroup.ID)
log.Printf("Resource Group %s created", *resourceGroup.ResourceGroup.ID)
}
```

Expand Down