Skip to content

Commit 0a1d424

Browse files
authored
Update quickstart-go.md
1 parent f678dde commit 0a1d424

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/cosmos-db/mongodb/quickstart-go.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ The following snippets are all taken from the `todo.go` file.
6969
7070
### Connecting the Go app to Azure Cosmos DB
7171
72-
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (it is a fail-fast strategy).
72+
[`clientOptions`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo/options?tab=doc#ClientOptions) encapsulates the connection string for Azure Cosmos DB, which is passed in using an environment variable (details in the upcoming section). The connection is initialized using [`mongo.NewClient`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#NewClient) to which the `clientOptions` instance is passed. [`Ping` function](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Client.Ping) is invoked to confirm successful connectivity (it'is a fail-fast strategy).
7373

7474
```go
7575
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
@@ -194,7 +194,7 @@ func update(todoid, newStatus string) {
194194
195195
### Delete a `todo`
196196
197-
A `todo` is deleted based on its `_id` and it is encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
197+
A `todo` is deleted based on its `_id` and it'is encapsulated in the form of a [`bson.D`](https://pkg.go.dev/go.mongodb.org/[email protected]/bson?tab=doc#D) instance. [`DeleteOne`](https://pkg.go.dev/go.mongodb.org/[email protected]/mongo?tab=doc#Collection.DeleteOne) is invoked to delete the document.
198198
199199
```go
200200
func delete(todoid string) {
@@ -231,27 +231,27 @@ To confirm that the application was built properly.
231231
232232
### Sign in to Azure
233233
234-
If you choose to install and use the CLI locally, this topic requires that you are running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
234+
If you choose to install and use the CLI locally, this topic requires that you're running the Azure CLI version 2.0 or later. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI].
235235
236-
If you are using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
236+
If you're using an installed Azure CLI, sign in to your Azure subscription with the [az login](/cli/azure/reference-index#az-login) command and follow the on-screen directions. You can skip this step if you're using the Azure Cloud Shell.
237237
238238
```azurecli
239239
az login
240240
```
241241
242242
### Add the Azure Cosmos DB module
243243
244-
If you are using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
244+
If you're using an installed Azure CLI, check to see if the `cosmosdb` component is already installed by running the `az` command. If `cosmosdb` is in the list of base commands, proceed to the next command. You can skip this step if you're using the Azure Cloud Shell.
245245
246-
If `cosmosdb` is not in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
246+
If `cosmosdb` isn't in the list of base commands, reinstall [Azure CLI](/cli/azure/install-azure-cli).
247247
248248
### Create a resource group
249249
250250
Create a [resource group](../../azure-resource-manager/management/overview.md) with the [az group create](/cli/azure/group#az-group-create). An Azure resource group is a logical container into which Azure resources like web apps, databases, and storage accounts are deployed and managed.
251251
252252
The following example creates a resource group in the West Europe region. Choose a unique name for the resource group.
253253
254-
If you are using Azure Cloud Shell, select **Try It**, follow the onscreen prompts to log in, then copy the command into the command prompt.
254+
If you're using Azure Cloud Shell, select **Try It**, follow the onscreen prompts to log in, then copy the command into the command prompt.
255255
256256
```azurecli-interactive
257257
az group create --name myResourceGroup --location "West Europe"
@@ -430,7 +430,7 @@ List the `todo`s to confirm:
430430
./todo --list all
431431
```
432432
433-
The `todo` you just deleted should not be present:
433+
The `todo` you just deleted shouldn't be present:
434434
435435
```bash
436436
+----------------------------+--------------------------------+-----------+

0 commit comments

Comments
 (0)