File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,15 +32,26 @@ Add the following key-values to the App Configuration store and leave **Label**
3232
3333### Setup
3434
35- Set the connection string as an environment variable:
35+ 1 . Initialize a new Go module.
3636
37- ``` bash
38- # Windows
39- set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+ ``` bash
38+ go mod init console-example-app
39+ ```
40+ 1. Add the Azure App Configuration provider as a dependency.
4041
41- # Linux/macOS
42- export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43- ```
42+ ` ` ` bash
43+ go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+ ` ` `
45+
46+ 1. Set the connection string as an environment variable:
47+
48+ ` ` ` bash
49+ # Windows
50+ set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
51+
52+ # Linux/macOS
53+ export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
54+ ` ` `
4455
4556# ## Run the Application
4657
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,15 +32,26 @@ Add the following key-values to the App Configuration store and leave **Label**
3232
3333### Setup
3434
35- Set the connection string as an environment variable:
35+ 1 . Initialize a new Go module.
3636
37- ``` bash
38- # Windows
39- set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+ ``` bash
38+ go mod init console-example-refresh
39+ ```
40+ 1. Add the Azure App Configuration provider as a dependency.
4041
41- # Linux/macOS
42- export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43- ```
42+ ` ` ` bash
43+ go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+ ` ` `
45+
46+ 1. Set the connection string as an environment variable:
47+
48+ ` ` ` bash
49+ # Windows
50+ set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
51+
52+ # Linux/macOS
53+ export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
54+ ` ` `
4455
4556# ## Run the Application
4657
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -32,15 +32,27 @@ Add the following key-values to the App Configuration store and leave **Label**
3232
3333### Setup
3434
35- Set the connection string as an environment variable:
35+ 1 . Initialize a new Go module.
3636
37- ``` bash
38- # Windows
39- set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
37+ ``` bash
38+ go mod init gin-example-refresh
39+ ```
40+ 1. Add the required dependencies.
4041
41- # Linux/macOS
42- export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
43- ```
42+ ` ` ` bash
43+ go get github.com/Azure/AppConfiguration-GoProvider/azureappconfiguration
44+ go get github.com/gin-gonic/gin
45+ ` ` `
46+
47+ 1. Set the connection string as an environment variable:
48+
49+ ` ` ` bash
50+ # Windows
51+ set AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
52+
53+ # Linux/macOS
54+ export AZURE_APPCONFIG_CONNECTION_STRING=your-connection-string
55+ ` ` `
4456
4557# ## Run the Application
4658
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments