func (c *Client) viewHandler(w http.ResponseWriter, r *http.Request) {
	data := templateData{
		User:  c.user,
		Error: c.err,
	}
	renderTemplate(w, "login", data)
}
func (c *Client) viewHandler(w http.ResponseWriter, r *http.Request) {
	data := templateData{
		User:  c.user,
		Error: c.err,
	}
	renderTemplate(w, "login", data)
}
func ( c * Client ) viewHandler ( w http . ResponseWriter , r * http . Request ) { data := templateData { User : c . user , Error : c . err , } renderTemplate ( w , " " , data ) }
// Show the current user if logged in, otherwise display a login form.
Show the current user if logged in otherwise display a login form .