contentnegotiation

command
v0.32.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL