From 1e9f6f6fdcf8ef46256c1c27f8076ab9c77e4e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20F=C3=BCrst?= Date: Tue, 19 Sep 2017 09:32:20 +0200 Subject: [PATCH] Correct parameter name --- section03/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/section03/README.md b/section03/README.md index ef27894..dcd3e2e 100644 --- a/section03/README.md +++ b/section03/README.md @@ -19,7 +19,7 @@ The `http.Request` type has a method `FormValue` with the following docs: FormValue returns the first value for the named component of the query. POST and PUT body parameters take precedence over URL query string values. FormValue calls ParseMultipartForm and ParseForm if necessary and ignores any errors returned by these functions. If key is not present, FormValue returns the empty string. To access multiple values of the same key, call ParseForm and then inspect Request.Form directly. -That's easy! So if we want to obtain the value of a parameter `q` in the URL `/hello?msg=world` +That's easy! So if we want to obtain the value of a parameter `name` in the URL `/hello?name=francesc` we can write the next program. [embedmd]:# (examples/handlers/main.go /func paramHandler/ /^}/)