<p dir="auto"><a href="https://github.com/golang/go/wiki/CodeReviewComments#imports">https://github.com/golang/go/wiki/CodeReviewComments#imports</a> says that <code class="notranslate">"Imports are organized in groups, with blank lines between them. The standard library packages are in the first group."</code>.</p>
<p dir="auto">However godoc simply sorts imports in lexicographical order.<br>
This makes it very hard to find the documentation of a standard package.</p>
<p dir="auto">The order should be:</p>
<ol dir="auto">
<li>standard library packages</li>
<li>golang.org/x/ packages</li>
<li>other packages</li>
</ol>
<pre class="notranslate">Brad: "I'd really like to see the standard library by itself, or at least broken up
by itself at the top of the page, with third-party GOPATH stuff at the bottom."

Russ: "If you really wanted to, you could do something like
<a href="http://golang.org/cl/5797067" rel="nofollow">http://golang.org/cl/5797067</a> But I am not sure it's such a good idea"

Brad: "Sounds like a great idea. Much prettier. What's the downside?"

Russ: "I have used systems with 'mostly sorted' lists before, and the convenience
always seems to give way to confusion, because people think they _are_ sorted and then
can't find things."

Robert: "Can we have different modes for looking at it?"

Brad: "The default is all that matters. There's already a flat mode (which I
prefer), but I can never remember how to get to it without looking up the source, which
I'm always too lazy to do. You could argue for mode-switching links, but therein lies
craziness."</pre>