code: func hapiProfile(w http.ResponseWriter, r *http.Request) {
  	if os.Getenv("ABOT_ENV") != "test" {
  		if !isLoggedIn(w, r) {
  			return
  		}
  	}
  	cookie, err := r.Cookie("id")
  	if err != nil {
  		writeErrorInternal(w, err)
  		return
  	}
  	uid := cookie.Value
  	var user struct {
  		Name   string
  		Email  string
  		Phones []dt.Phone
  	}
  	q := `SELECT name, email FROM users WHERE id=$1`
  	err = db.Get(&user, q, uid)
  	if err != nil {
  		writeErrorInternal(w, err)
  		return
  	}
  	q = `SELECT flexid FROM userflexids
  	     WHERE flexidtype=2 AND userid=$1
  	     LIMIT 10`
  	err = db.Select(&user.Phones, q, uid)
  	if err != nil && err != sql.ErrNoRows {
  		writeErrorInternal(w, err)
  		return
  	}
  	writeBytes(w, user)
  }
docs: // hapiProfile shows a user profile with the user's current addresses, credit
  // cards, and contact information.