title: How can I tell goimports to prefer one package over another?
body: <p>This file:</p>
  
  <pre><code>package foo
  
  func errorer() error {
      return errors.New("Whoops")
  }
  </code></pre>
  
  <p>Will be transformed to this with <code>goimports</code>:</p>
  
  <pre><code>package foo
  
  import "errors"
  
  func errorer() error {
      return errors.New("Whoops")
  }
  </code></pre>
  
  <p>However, I'd like to use the <code>github.com/pkg/errors</code> package everywhere in this project, and not the <code>errors</code> package.</p>
  
  <p>Can I tell <code>goimports</code> to always prefer the <code>github.com/pkg/errors</code> package?</p>