diff --git a/de/04.1.md b/de/04.1.md index a95ade6c..3bada622 100644 --- a/de/04.1.md +++ b/de/04.1.md @@ -55,7 +55,7 @@ This is easy to find out using the `http` package. Let's see how to handle the f fmt.Println("password:", r.Form["password"]) } } - + func main() { http.HandleFunc("/", sayhelloName) // setting router rule 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 ![](images/4.1.slice.png?raw=true) -Figure 4.2 Server prints request data +Figure 4.2 Server prints request data -The type of `request.Form` is `url.Value`. It saves data with the format `key=value`. +The type of `request.Form` is `url.Values`. It saves data with the format `key=value`. v := url.Values{} v.Set("name", "Ava") diff --git a/en/04.1.md b/en/04.1.md index 781105f6..5f66e2e5 100644 --- a/en/04.1.md +++ b/en/04.1.md @@ -85,9 +85,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t ![](images/4.1.slice.png?raw=true) -Figure 4.2 Server prints request data +Figure 4.2 Server prints request data -The type of `request.Form` is `url.Value`. It saves data with the format `key=value`. +The type of `request.Form` is `url.Values`. It saves data with the format `key=value`. ```Go v := url.Values{} v.Set("name", "Ava") diff --git a/es/04.1.md b/es/04.1.md index 1b3b8553..1ba5affb 100644 --- a/es/04.1.md +++ b/es/04.1.md @@ -86,7 +86,7 @@ Trata de cambiar la URL de ingreso de `http://127.0.0.1:9090/login` a `http://12 Figure 4.2 Server prints request data -El tipo de `request.Form` es `url.Value`. Y lo guarda en el formato `llave=valor`. +El tipo de `request.Form` es `url.Values`. Y lo guarda en el formato `llave=valor`. ``` v := url.Values{} v.Set("name", "Ava") diff --git a/pt-br/04.1.md b/pt-br/04.1.md index a95ade6c..3bada622 100644 --- a/pt-br/04.1.md +++ b/pt-br/04.1.md @@ -55,7 +55,7 @@ This is easy to find out using the `http` package. Let's see how to handle the f fmt.Println("password:", r.Form["password"]) } } - + func main() { http.HandleFunc("/", sayhelloName) // setting router rule 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 ![](images/4.1.slice.png?raw=true) -Figure 4.2 Server prints request data +Figure 4.2 Server prints request data -The type of `request.Form` is `url.Value`. It saves data with the format `key=value`. +The type of `request.Form` is `url.Values`. It saves data with the format `key=value`. v := url.Values{} v.Set("name", "Ava") diff --git a/ru/04.1.md b/ru/04.1.md index 42f10e10..afd9eec9 100644 --- a/ru/04.1.md +++ b/ru/04.1.md @@ -55,7 +55,7 @@ fmt.Println("Пароль:", r.Form["password"]) } } - + func main() { http.HandleFunc("/", sayhelloName) // устанавливаем правила маршрутизатора http.HandleFunc("/login", login) @@ -84,9 +84,9 @@ ![](images/4.1.slice.png?raw=true) -Рисунок 4.2 Сервер печатает данные запроса +Рисунок 4.2 Сервер печатает данные запроса -Тип поля `request.Form` - это `url.Value`. Данные в нем сохраняются в формате `ключ=значение`. +Тип поля `request.Form` - это `url.Values`. Данные в нем сохраняются в формате `ключ=значение`. v := url.Values{} v.Set("name", "Ava") diff --git a/th/04.1.md b/th/04.1.md index 781105f6..5f66e2e5 100644 --- a/th/04.1.md +++ b/th/04.1.md @@ -85,9 +85,9 @@ Try changing the value of the action in the form `http://127.0.0.1:9090/login` t ![](images/4.1.slice.png?raw=true) -Figure 4.2 Server prints request data +Figure 4.2 Server prints request data -The type of `request.Form` is `url.Value`. It saves data with the format `key=value`. +The type of `request.Form` is `url.Values`. It saves data with the format `key=value`. ```Go v := url.Values{} v.Set("name", "Ava")