title: main packages in go 1.18.1 built-in libraries
body: <p>I am trying to upgrade my project's golang version from <code>1.15</code> to <code>1.18.1</code>. I changed the version in <code>go.mod</code> and executed <code>go mod tidy</code> command.</p>
  <p>Weird thing, I got following error in my main file which has a <code>main</code> function inside itself:</p>
  <pre><code>'main' collides with name declared in this package
  </code></pre>
  <p>It happens for <code>net/http</code> and <code>syscall</code> libraries:</p>
  <ul>
  <li><p>net/http</p>
  <pre><code>Found several packages [http, main] in '/usr/local/go-1.18.1/src/net/http;/usr/local/go-1.18.1/src/net/http'
  </code></pre>
  </li>
  <li><p>syscall</p>
  <pre><code>Found several packages [syscall, main] in '/usr/local/go-1.18.1/src/syscall;/usr/local/go-1.18.1/src/syscall'
  </code></pre>
  </li>
  </ul>
  <p>As I checked the warning was correct and there were main packages in both libraries.</p>
  <p>Should I use an alternative library or should I change the way I import them?</p>
  <p><strong>Edit 1:</strong></p>
  <p>This is an IDE error and I use Goland.</p>