You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/quickstart-golang.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Quickstart: Create a GoLang web app'
3
-
description: Deploy your first Go Hello World to Azure App Service in minutes. You deploy using Git, which is one of many ways to deploy to App Service.
3
+
description: Deploy your first Go Hello World to Azure App Service in minutes.
4
4
ms.topic: quickstart
5
5
ms.date: 10/13/2022
6
6
ms.devlang: golang
@@ -25,11 +25,11 @@ To complete this quickstart, you need:
25
25
26
26
First, create a folder for your project.
27
27
28
-
Go to the terminal window, change into the folder you just created and run `go mod init <ModuleName>`. The ModuleName could just be the folder name at this point.
28
+
Go to the terminal window, change into the folder you created and run `go mod init <ModuleName>`. The ModuleName could just be the folder name at this point.
29
29
30
30
The `go mod init` command creates a go.mod file to track your code's dependencies. So far, the file includes only the name of your module and the Go version your code supports. But as you add dependencies, the go.mod file will list the versions your code depends on.
31
31
32
-
Create a file called main.go. We will be doing most of our coding here.
32
+
Create a file called main.go. We'll be doing most of our coding here.
33
33
34
34
```golang
35
35
package main
@@ -46,9 +46,9 @@ func HelloServer(w http.ResponseWriter, r *http.Request) {
46
46
}
47
47
```
48
48
49
-
This program use the `net.http` package to handle all requests to the web root with the HelloServer function. The call to `http.ListenAndServe` tells the server to listen on the TCP network address :8080
49
+
This program uses the `net.http` package to handle all requests to the web root with the HelloServer function. The call to `http.ListenAndServe` tells the server to listen on the TCP network address `:8080`.
50
50
51
-
If you want to do a sanity check, you can run this by opening up a terminal, navigating to your project’s directory and then calling`go run main.go`. Now open a browser window and type the URL `http://localhost:8080/world`. You should see the message `Hello, world!`.
51
+
Using a terminal, go to your project’s directory and run`go run main.go`. Now open a browser window and type the URL `http://localhost:8080/world`. You should see the message `Hello, world!`.
52
52
53
53
## 2 - Create a web app in Azure
54
54
@@ -58,7 +58,7 @@ Azure CLI commands can be run on a computer with the [Azure CLI installed](/cli/
58
58
59
59
Azure CLI has a command `az webapp up` that will create the necessary resources and deploy your application in a single step.
60
60
61
-
If necessary, login to Azure using [az login](/cli/azure/authenticate-azure-cli).
61
+
If necessary, log in to Azure using [az login](/cli/azure/authenticate-azure-cli).
0 commit comments