Skip to content

Commit e2bce6f

Browse files
authored
Merge pull request #1153 from attilanagy/fix_type_in_04_1
Fix the type of request.Form in 04.1
2 parents 153ba61 + 255080d commit e2bce6f

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

de/04.1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This is easy to find out using the `http` package. Let's see how to handle the f
5555
fmt.Println("password:", r.Form["password"])
5656
}
5757
}
58-
58+
5959
func main() {
6060
http.HandleFunc("/", sayhelloName) // setting router rule
6161
http.HandleFunc("/login", login)
@@ -84,9 +84,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t
8484

8585
![](images/4.1.slice.png?raw=true)
8686

87-
Figure 4.2 Server prints request data
87+
Figure 4.2 Server prints request data
8888

89-
The type of `request.Form` is `url.Value`. It saves data with the format `key=value`.
89+
The type of `request.Form` is `url.Values`. It saves data with the format `key=value`.
9090

9191
v := url.Values{}
9292
v.Set("name", "Ava")

en/04.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t
8585

8686
![](images/4.1.slice.png?raw=true)
8787

88-
Figure 4.2 Server prints request data
88+
Figure 4.2 Server prints request data
8989

90-
The type of `request.Form` is `url.Value`. It saves data with the format `key=value`.
90+
The type of `request.Form` is `url.Values`. It saves data with the format `key=value`.
9191
```Go
9292
v := url.Values{}
9393
v.Set("name", "Ava")

es/04.1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Trata de cambiar la URL de ingreso de `http://127.0.0.1:9090/login` a `http://12
8686

8787
Figure 4.2 Server prints request data
8888

89-
El tipo de `request.Form` es `url.Value`. Y lo guarda en el formato `llave=valor`.
89+
El tipo de `request.Form` es `url.Values`. Y lo guarda en el formato `llave=valor`.
9090
```
9191
v := url.Values{}
9292
v.Set("name", "Ava")

pt-br/04.1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ This is easy to find out using the `http` package. Let's see how to handle the f
5555
fmt.Println("password:", r.Form["password"])
5656
}
5757
}
58-
58+
5959
func main() {
6060
http.HandleFunc("/", sayhelloName) // setting router rule
6161
http.HandleFunc("/login", login)
@@ -84,9 +84,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t
8484

8585
![](images/4.1.slice.png?raw=true)
8686

87-
Figure 4.2 Server prints request data
87+
Figure 4.2 Server prints request data
8888

89-
The type of `request.Form` is `url.Value`. It saves data with the format `key=value`.
89+
The type of `request.Form` is `url.Values`. It saves data with the format `key=value`.
9090

9191
v := url.Values{}
9292
v.Set("name", "Ava")

ru/04.1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
fmt.Println("Пароль:", r.Form["password"])
5656
}
5757
}
58-
58+
5959
func main() {
6060
http.HandleFunc("/", sayhelloName) // устанавливаем правила маршрутизатора
6161
http.HandleFunc("/login", login)
@@ -84,9 +84,9 @@
8484

8585
![](images/4.1.slice.png?raw=true)
8686

87-
Рисунок 4.2 Сервер печатает данные запроса
87+
Рисунок 4.2 Сервер печатает данные запроса
8888

89-
Тип поля `request.Form` - это `url.Value`. Данные в нем сохраняются в формате `ключ=значение`.
89+
Тип поля `request.Form` - это `url.Values`. Данные в нем сохраняются в формате `ключ=значение`.
9090

9191
v := url.Values{}
9292
v.Set("name", "Ava")

th/04.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t
8585

8686
![](images/4.1.slice.png?raw=true)
8787

88-
Figure 4.2 Server prints request data
88+
Figure 4.2 Server prints request data
8989

90-
The type of `request.Form` is `url.Value`. It saves data with the format `key=value`.
90+
The type of `request.Form` is `url.Values`. It saves data with the format `key=value`.
9191
```Go
9292
v := url.Values{}
9393
v.Set("name", "Ava")

0 commit comments

Comments
 (0)