Yash 8ea227bd0a
docs: fix example outputs and claims that differ from actual behavior
Each of these was checked by running the example against the current
master branch with net/http/httptest.

- Parameters in path: the comment said routes starting with /user/groups
  are never interpreted as /user/:name/... routes. GET /user/groups/admin
  is served by /user/:name/*action with name "groups". Only the exact
  path /user/groups goes to the static route.
- Map as querystring or postform parameters: fmt prints map keys in
  sorted order, so the output is map[a:1234 b:hello] and
  map[first:thinkerou second:tianou].
- JSONP: the response body is x({"foo":"bar"}); with plain quotes and a
  trailing semicolon. The escaped quotes were copied from a Go string
  literal in the tests.
- Model binding: when Bind fails, AbortWithError(400, err) sends the
  headers with an empty body and no Content-Type. It does not set
  text/plain; charset=utf-8.
- Set and get a cookie: the first example used SetCookieData and
  http.Cookie without importing net/http and time, so it did not
  compile, and it duplicated the SetCookieData example that follows it.
  Restore the SetCookie call it used before SetCookieData was added.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NQDmA3mwGfL83pbg9WQ6ey
2026-10-26 00:04:07 +00:00
..