Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(940)

Issue 4105054: code review 4105054: Codelab: correct function definitions for handlers befo... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by aam
Modified:
14 years, 1 month ago
Reviewers:
CC:
adg, golang-dev
Visibility:
Public.

Description

Codelab: correct function definitions for handlers before closures are introduced. A couple of post-closure function definitions were introduced too early, making the resulting code fail compilation. Also, the TitleValidator regexp was missing.

Patch Set 1 #

Patch Set 2 : diff -r b1638ab4d480 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b1638ab4d480 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r b1638ab4d480 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r b1638ab4d480 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -6 lines) Patch
M doc/codelab/wiki/index.html View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M doc/codelab/wiki/wiki.html View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6
aam
Hello adg (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 1 month ago (2011-02-06 17:50:05 UTC) #1
aam
Hello adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2011-02-06 21:15:59 UTC) #2
aam
Hello adg (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2011-02-06 21:31:18 UTC) #3
aam
oops, i just realized that the whole thing is autogenerated, so i fixed the template ...
14 years, 1 month ago (2011-02-06 21:32:08 UTC) #4
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=76543d680825 *** Codelab: correct function definitions for handlers before closures are introduced. ...
14 years, 1 month ago (2011-02-07 08:23:21 UTC) #5
adg
14 years, 1 month ago (2011-02-07 08:23:45 UTC) #6
LGTM

Thanks!

On 6 February 2011 18:50,  <mirtchovski@gmail.com> wrote:
> Reviewers: adg,
>
> Message:
> Hello adg (cc: golang-dev@googlegroups.com),
>
> I'd like you to review this change to
> https://go.googlecode.com/hg/
>
>
> Description:
> Codelab: correct function definitions for handlers before closures are
> introduced.
>
> A couple of post-closure function definitions were introduced too early,
> making the resulting
> code fail compilation.
>
> Please review this at http://codereview.appspot.com/4105054/
>
> Affected files:
>  M doc/codelab/wiki/index.html
>
>
> Index: doc/codelab/wiki/index.html
> ===================================================================
> --- a/doc/codelab/wiki/index.html
> +++ b/doc/codelab/wiki/index.html
> @@ -573,7 +573,7 @@
>  </p>
>
>  <pre>
> -func viewHandler(w http.ResponseWriter, r *http.Request, title string) {
> +func viewHandler(w http.ResponseWriter, r *http.Request) {
>        p, err := loadPage(title)
>        if err != nil {
>                http.Redirect(w, r, &#34;/edit/&#34;+title, http.StatusFound)
> @@ -658,7 +658,7 @@
>  </p>
>
>  <pre>
> -func saveHandler(w http.ResponseWriter, r *http.Request, title string) {
> +func saveHandler(w http.ResponseWriter, r *http.Request) {
>        body := r.FormValue(&#34;body&#34;)
>        p := &amp;Page{Title: title, Body: []byte(body)}
>        err := p.save()
>
>
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b