Documentation
¶
Overview ¶
Command contentnegotiation backs the snippets on the doc-site "Content negotiation" page (usage/standalone/content-negotiation.md). Each function below is the source of a `{{< code region="..." >}}` include; the package as a whole compiles and lints so the snippets cannot rot silently.
`go run .` exits immediately (no demos run by default). Pass `serve` to run the negotiating HTTP server demo (which blocks on ListenAndServe).
Click to show internal directories.
Click to hide internal directories.