internal/testdata/fixtures/expected/with-code.html

<article class="til">
  <header><h1 id="til-using-errors-is-in-go">Using errors.Is in Go</h1></header>
  <p>I learned today that <code>errors.Is</code> unwraps wrapped errors automatically.</p>
  <pre><code class="language-go">package main

import (
    &#34;errors&#34;
    &#34;fmt&#34;
)

func main() {
    a := errors.New(&#34;boom&#34;)
    b := fmt.Errorf(&#34;wrapped: %w&#34;, a)
    fmt.Println(errors.Is(b, a))
}
</code></pre>
  <p>That prints <code>true</code>.</p>
  <footer class="tags">
    <a href="/tags/go/">go</a>
    <a href="/tags/errors/">errors</a>
  </footer>
</article>