blob: ececa507e763cb25ab26e2bbc45240490771ab60 [file] [log] [blame]
Copyright 2018 The Go Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
Note: Static (i.e., not template-generated) href and id
attributes start with "pkg-" to make it impossible for
them to conflict with generated attributes (some of which
correspond to Go identifiers).
{{define "layout"}}
<article class="Pkg Article">
{{$pkg := .pkg}}
{{with $pkg.Dirs}}
{{/* DirList entries are numbers and strings - no need for FSet */}}
{{if $pkg.PDoc}}
<h2 id="pkg-subdirectories">Subdirectories</h2>
<div id="manual-nav">
<dt><a href="#stdlib">Standard library</a></dt>
<dt><a href="#other">Other packages</a></dt>
<dd><a href="#subrepo">Sub-repositories</a></dd>
<dd><a href="#community">Community</a></dd>
<div id="stdlib" class="toggleVisible">
<div class="collapsed">
<h2 class="toggleButton" title="Click to show Standard library section">Standard library ▸</h2>
<div class="expanded">
<h2 class="toggleButton" title="Click to hide Standard library section">Standard library ▾</h2>
<img alt="" class="gopher" src="/doc/gopher/pkg.png"/>
<div class="pkg-dir">
<th class="pkg-name">Name</th>
<th class="pkg-synopsis">Synopsis</th>
{{range .}}
{{if $pkg.DirFlat}}
{{if .HasPkg}}
<td class="pkg-name">
<a href="{{.Path}}/{{$pkg.ModeQuery}}">{{.Path}}</a>
<td class="pkg-name" style="padding-left: {{mul (sub .Depth 1) 20}}px;">
<a href="{{.Path}}/{{$pkg.ModeQuery}}">{{.Name}}</a>
<td class="pkg-synopsis">
</div> <!-- .pkg-dir -->
</div> <!-- .expanded -->
</div> <!-- #stdlib .toggleVisible -->
<h2 id="other">Other packages</h2>
<h3 id="subrepo">Sub-repositories</h3>
These packages are part of the Go Project but outside the main Go tree.
They are developed under looser <a href="/doc/go1compat">compatibility requirements</a> than the Go core.
Install them with "<a href="/cmd/go/#hdr-Download_and_install_packages_and_dependencies">go get</a>".
<li><a href="">benchmarks</a> — benchmarks to measure Go as it is developed.</li>
<li><a href="">blog</a><a href=""></a>'s implementation.</li>
<li><a href="">build</a><a href=""></a>'s implementation.</li>
<li><a href="">crypto</a> — additional cryptography packages.</li>
<li><a href="">debug</a> — an experimental debugger for Go.</li>
<li><a href="">image</a> — additional imaging packages.</li>
<li><a href="">mobile</a> — experimental support for Go on mobile platforms.</li>
<li><a href="">net</a> — additional networking packages.</li>
<li><a href="">perf</a> — packages and tools for performance measurement, storage, and analysis.</li>
<li><a href="">pkgsite</a> — home of the website.</li>
<li><a href="">review</a> — a tool for working with Gerrit code reviews.</li>
<li><a href="">sync</a> — additional concurrency primitives.</li>
<li><a href="">sys</a> — packages for making system calls.</li>
<li><a href="">text</a> — packages for working with text.</li>
<li><a href="">time</a> — additional time packages.</li>
<li><a href="">tools</a> — godoc, goimports, gorename, and other tools.</li>
<li><a href="">tour</a><a href=""></a>'s implementation.</li>
<li><a href="">exp</a> — experimental and deprecated packages (handle with care; may change without warning).</li>
<h3 id="community">Community</h3>
These services can help you find Open Source packages provided by the community.
<li><a href=""></a> - the Go package discovery site.</li>
<li><a href="/wiki/Projects">Projects at the Go Wiki</a> - a curated list of Go projects.</li>