title: errors.Is in Go 1.13
body: <p>Go 1.13 introduces new features to the errors to simplify working with errors. Before Go 1.13, I checked my code for an error by this way:</p>
  
  <pre><code>if err == nil {
      // ...
  }
  </code></pre>
  
  <p>But Go's <code>errors.Is()</code> helps me to do it properly: </p>
  
  <blockquote>
    <p>It’s a sensible way to future-proof your code and prevent issues
    caused by you — or any packages that your code imports — wrapping
    errors in the future.</p>
  </blockquote>
  
  <p>And that is ok for situations like this:</p>
  
  <pre><code>if errors.Is(err, sql.ErrNoRows) {
     // ...
  }
  </code></pre>
  
  <p>Does it mean that I have to change all my <code>err == nil</code> statements to:</p>
  
  <pre><code>if errors.Is(err, nil) {
      // ...
  }
  </code></pre>