matryer/goblueprints

Chapter2: Syntax error

ehernandez-xk opened this issue · 1 comments

The page 53 has a little syntax error:

w.Header.Set("Location", loginUrl)

Header is a function that returns the Header. Should be:

w.Header().Set("Location", loginUrl)

If you did it on purpose to learn =0) it is ok.

Good catch.