<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Documentation on header — website metadata toolkit</title><link>https://arran4.github.io/header/docs/</link><description>Recent content in Documentation on header — website metadata toolkit</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arran4.github.io/header/docs/index.xml" rel="self" type="application/rss+xml"/><item><title>Getting started</title><link>https://arran4.github.io/header/docs/getting-started/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arran4.github.io/header/docs/getting-started/</guid><description>&lt;h1 id="getting-started"&gt;Getting started&lt;a class="anchor" href="#getting-started" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Goal:&lt;/strong&gt; Install &lt;code&gt;header&lt;/code&gt;, extract metadata from a URL, and inspect the result.&lt;/p&gt;
&lt;h2 id="prerequisites"&gt;Prerequisites&lt;a class="anchor" href="#prerequisites" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Install a supported Go toolchain (Go 1.26 or later to build from source) and have network access to a webpage. Alternatively, download a compatible binary from &lt;a href="https://github.com/arran4/header/releases"&gt;GitHub Releases&lt;/a&gt; when available.&lt;/p&gt;
&lt;h2 id="install"&gt;Install&lt;a class="anchor" href="#install" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go install github.com/arran4/header/cmd/header@latest&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Check the installed command:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;header --help&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="extract-metadata"&gt;Extract metadata&lt;a class="anchor" href="#extract-metadata" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;header extract --style json https://example.com&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This requests the page and prints the extracted metadata in JSON. The actual fields depend on the remote page and can change as its content changes.&lt;/p&gt;</description></item><item><title>Contributing</title><link>https://arran4.github.io/header/docs/contributing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arran4.github.io/header/docs/contributing/</guid><description>&lt;h1 id="contributing"&gt;Contributing&lt;a class="anchor" href="#contributing" aria-label="Link"&gt;&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;The project is written in Go. Build from a checkout with Go 1.26 or later.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go test ./...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go test -race -count&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; ./...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go vet ./...
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;go generate ./...&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Generated command sources under &lt;code&gt;cmd/&lt;/code&gt; are produced from definitions under &lt;code&gt;internal/cli/&lt;/code&gt; using the pinned &lt;code&gt;gosubc&lt;/code&gt; dependency. Review &lt;a href="https://github.com/arran4/header/blob/main/AGENTS.md"&gt;AGENTS.md&lt;/a&gt; and the &lt;a href="https://github.com/arran4/header/blob/main/internal/generate/README.md"&gt;generation notes&lt;/a&gt; before changing commands.&lt;/p&gt;
&lt;h2 id="documentation"&gt;Documentation&lt;a class="anchor" href="#documentation" aria-label="Link"&gt;&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The documentation source lives in &lt;code&gt;docs/&lt;/code&gt; and uses Hugo Book as a pinned submodule. Preview with:&lt;/p&gt;</description></item></channel></rss>