diff --git a/client/src/pages/guide/english/go/receive-data-with-your-webserver/index.md b/client/src/pages/guide/english/go/receive-data-with-your-webserver/index.md index d8fdf5eb73..0d8036e1dd 100644 --- a/client/src/pages/guide/english/go/receive-data-with-your-webserver/index.md +++ b/client/src/pages/guide/english/go/receive-data-with-your-webserver/index.md @@ -10,11 +10,11 @@ import ( "html/template" ) -type PAGE struct { - NAME string +type Page struct { + Name string } -var page PAGE +var page Page func main() { http.HandleFunc("/", servePage) @@ -22,9 +22,9 @@ func main() { } func servePage(writer http.ResponseWriter, reqest *http.Request) { - page.NAME = request.FormValue("name") + page.Name = request.FormValue("name") template := template.New("sayHello") - template, _ = template.Parse("Hello {{.NAME}}!") + template, _ = template.Parse("Hello {{.Name}}!") template.Execute(writer, page) } ```