2013-07-31 19:01:10 -06:00
|
|
|
<!--
|
|
|
|
Copyright 2009 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).
|
|
|
|
-->
|
|
|
|
{{with .PDoc}}
|
2018-05-11 23:13:07 -06:00
|
|
|
<script>
|
2014-08-26 14:22:54 -06:00
|
|
|
document.ANALYSIS_DATA = {{$.AnalysisData}};
|
|
|
|
document.CALLGRAPH = {{$.CallGraph}};
|
|
|
|
</script>
|
2014-03-14 16:58:22 -06:00
|
|
|
|
2013-07-31 19:01:10 -06:00
|
|
|
{{if $.IsMain}}
|
|
|
|
{{/* command documentation */}}
|
|
|
|
{{comment_html .Doc}}
|
|
|
|
{{else}}
|
|
|
|
{{/* package documentation */}}
|
|
|
|
<div id="short-nav">
|
|
|
|
<dl>
|
|
|
|
<dd><code>import "{{html .ImportPath}}"</code></dd>
|
|
|
|
</dl>
|
|
|
|
<dl>
|
|
|
|
<dd><a href="#pkg-overview" class="overviewLink">Overview</a></dd>
|
|
|
|
<dd><a href="#pkg-index" class="indexLink">Index</a></dd>
|
|
|
|
{{if $.Examples}}
|
|
|
|
<dd><a href="#pkg-examples" class="examplesLink">Examples</a></dd>
|
|
|
|
{{end}}
|
|
|
|
{{if $.Dirs}}
|
|
|
|
<dd><a href="#pkg-subdirectories">Subdirectories</a></dd>
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
<!-- The package's Name is printed as title by the top-level template -->
|
|
|
|
<div id="pkg-overview" class="toggleVisible">
|
|
|
|
<div class="collapsed">
|
|
|
|
<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
|
|
|
|
</div>
|
|
|
|
<div class="expanded">
|
|
|
|
<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
|
|
|
|
{{comment_html .Doc}}
|
2018-01-28 07:52:12 -07:00
|
|
|
{{example_html $ ""}}
|
2013-07-31 19:01:10 -06:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="pkg-index" class="toggleVisible">
|
|
|
|
<div class="collapsed">
|
|
|
|
<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
|
|
|
|
</div>
|
|
|
|
<div class="expanded">
|
|
|
|
<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
|
|
|
|
|
|
|
|
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
|
|
|
|
<div id="manual-nav">
|
|
|
|
<dl>
|
|
|
|
{{if .Consts}}
|
|
|
|
<dd><a href="#pkg-constants">Constants</a></dd>
|
|
|
|
{{end}}
|
|
|
|
{{if .Vars}}
|
|
|
|
<dd><a href="#pkg-variables">Variables</a></dd>
|
|
|
|
{{end}}
|
|
|
|
{{range .Funcs}}
|
|
|
|
{{$name_html := html .Name}}
|
2014-04-07 13:54:28 -06:00
|
|
|
<dd><a href="#{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{range .Types}}
|
|
|
|
{{$tname_html := html .Name}}
|
|
|
|
<dd><a href="#{{$tname_html}}">type {{$tname_html}}</a></dd>
|
|
|
|
{{range .Funcs}}
|
|
|
|
{{$name_html := html .Name}}
|
2014-04-07 13:54:28 -06:00
|
|
|
<dd> <a href="#{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{range .Methods}}
|
|
|
|
{{$name_html := html .Name}}
|
2014-04-07 13:54:28 -06:00
|
|
|
<dd> <a href="#{{$tname_html}}.{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if $.Notes}}
|
|
|
|
{{range $marker, $item := $.Notes}}
|
|
|
|
<dd><a href="#pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</a></dd>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div><!-- #manual-nav -->
|
|
|
|
|
|
|
|
{{if $.Examples}}
|
|
|
|
<div id="pkg-examples">
|
2017-10-08 18:15:37 -06:00
|
|
|
<h3>Examples</h3>
|
2018-06-13 03:29:40 -06:00
|
|
|
<div class="js-expandAll expandAll collapsed">(Expand All)</div>
|
2013-07-31 19:01:10 -06:00
|
|
|
<dl>
|
|
|
|
{{range $.Examples}}
|
|
|
|
<dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>
|
|
|
|
{{end}}
|
|
|
|
</dl>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{with .Filenames}}
|
2017-10-08 18:15:37 -06:00
|
|
|
<h3>Package files</h3>
|
2013-07-31 19:01:10 -06:00
|
|
|
<p>
|
|
|
|
<span style="font-size:90%">
|
|
|
|
{{range .}}
|
|
|
|
<a href="{{.|srcLink|html}}">{{.|filename|html}}</a>
|
|
|
|
{{end}}
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div><!-- .expanded -->
|
|
|
|
</div><!-- #pkg-index -->
|
|
|
|
|
2018-05-11 23:13:07 -06:00
|
|
|
{{if ne $.CallGraph "null"}}
|
2014-03-27 13:30:14 -06:00
|
|
|
<div id="pkg-callgraph" class="toggle" style="display: none">
|
2014-03-14 16:58:22 -06:00
|
|
|
<div class="collapsed">
|
|
|
|
<h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
|
|
|
|
</div> <!-- .expanded -->
|
|
|
|
<div class="expanded">
|
|
|
|
<h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
|
2014-08-26 14:22:54 -06:00
|
|
|
<p>
|
|
|
|
In the call graph viewer below, each node
|
|
|
|
is a function belonging to this package
|
|
|
|
and its children are the functions it
|
|
|
|
calls—perhaps dynamically.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
The root nodes are the entry points of the
|
|
|
|
package: functions that may be called from
|
|
|
|
outside the package.
|
|
|
|
There may be non-exported or anonymous
|
|
|
|
functions among them if they are called
|
|
|
|
dynamically from another package.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Click a node to visit that function's source code.
|
|
|
|
From there you can visit its callers by
|
|
|
|
clicking its declaring <code>func</code>
|
|
|
|
token.
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
Functions may be omitted if they were
|
|
|
|
determined to be unreachable in the
|
|
|
|
particular programs or tests that were
|
|
|
|
analyzed.
|
|
|
|
</p>
|
|
|
|
<!-- Zero means show all package entry points. -->
|
|
|
|
<ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
|
2014-03-14 16:58:22 -06:00
|
|
|
</div>
|
|
|
|
</div> <!-- #pkg-callgraph -->
|
2018-05-11 23:13:07 -06:00
|
|
|
{{end}}
|
2014-03-14 16:58:22 -06:00
|
|
|
|
2013-07-31 19:01:10 -06:00
|
|
|
{{with .Consts}}
|
|
|
|
<h2 id="pkg-constants">Constants</h2>
|
|
|
|
{{range .}}
|
|
|
|
{{comment_html .Doc}}
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Vars}}
|
|
|
|
<h2 id="pkg-variables">Variables</h2>
|
|
|
|
{{range .}}
|
|
|
|
{{comment_html .Doc}}
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{range .Funcs}}
|
|
|
|
{{/* Name is a string - no need for FSet */}}
|
|
|
|
{{$name_html := html .Name}}
|
2016-03-06 07:31:52 -07:00
|
|
|
<h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
2017-10-24 14:45:43 -06:00
|
|
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
2017-12-22 18:30:39 -07:00
|
|
|
{{$since := since "func" "" .Name $.PDoc.ImportPath}}
|
|
|
|
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
|
2016-03-06 07:31:52 -07:00
|
|
|
</h2>
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2016-12-13 13:47:37 -07:00
|
|
|
{{comment_html .Doc}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{example_html $ .Name}}
|
2014-03-14 16:58:22 -06:00
|
|
|
{{callgraph_html $ "" .Name}}
|
|
|
|
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{range .Types}}
|
|
|
|
{{$tname := .Name}}
|
|
|
|
{{$tname_html := html .Name}}
|
2016-03-06 07:31:52 -07:00
|
|
|
<h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a>
|
2017-10-24 14:45:43 -06:00
|
|
|
<a class="permalink" href="#{{$tname_html}}">¶</a>
|
2017-12-22 18:30:39 -07:00
|
|
|
{{$since := since "type" "" .Name $.PDoc.ImportPath}}
|
|
|
|
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
|
2016-03-06 07:31:52 -07:00
|
|
|
</h2>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{comment_html .Doc}}
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2013-07-31 19:01:10 -06:00
|
|
|
|
|
|
|
{{range .Consts}}
|
|
|
|
{{comment_html .Doc}}
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{range .Vars}}
|
|
|
|
{{comment_html .Doc}}
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{example_html $ $tname}}
|
2014-03-14 16:58:22 -06:00
|
|
|
{{implements_html $ $tname}}
|
|
|
|
{{methodset_html $ $tname}}
|
2013-07-31 19:01:10 -06:00
|
|
|
|
|
|
|
{{range .Funcs}}
|
|
|
|
{{$name_html := html .Name}}
|
2016-03-06 07:31:52 -07:00
|
|
|
<h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
2017-10-24 14:45:43 -06:00
|
|
|
<a class="permalink" href="#{{$name_html}}">¶</a>
|
2017-12-22 18:30:39 -07:00
|
|
|
{{$since := since "func" "" .Name $.PDoc.ImportPath}}
|
|
|
|
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
|
2016-03-06 07:31:52 -07:00
|
|
|
</h3>
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2016-12-13 13:47:37 -07:00
|
|
|
{{comment_html .Doc}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{example_html $ .Name}}
|
2014-08-26 14:22:54 -06:00
|
|
|
{{callgraph_html $ "" .Name}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{range .Methods}}
|
|
|
|
{{$name_html := html .Name}}
|
2016-03-06 07:31:52 -07:00
|
|
|
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a>
|
2017-10-24 14:45:43 -06:00
|
|
|
<a class="permalink" href="#{{$tname_html}}.{{$name_html}}">¶</a>
|
2017-12-22 18:30:39 -07:00
|
|
|
{{$since := since "method" .Recv .Name $.PDoc.ImportPath}}
|
|
|
|
{{if $since}}<span title="Added in Go {{$since}}">{{$since}}</span>{{end}}
|
2016-03-06 07:31:52 -07:00
|
|
|
</h3>
|
2016-11-16 19:10:15 -07:00
|
|
|
<pre>{{node_html $ .Decl true}}</pre>
|
2016-12-13 13:47:37 -07:00
|
|
|
{{comment_html .Doc}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{$name := printf "%s_%s" $tname .Name}}
|
|
|
|
{{example_html $ $name}}
|
2014-08-26 14:22:54 -06:00
|
|
|
{{callgraph_html $ .Recv .Name}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{with $.Notes}}
|
|
|
|
{{range $marker, $content := .}}
|
|
|
|
<h2 id="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</h2>
|
|
|
|
<ul style="list-style: none; padding: 0;">
|
|
|
|
{{range .}}
|
2016-04-13 09:37:18 -06:00
|
|
|
<li><a href="{{posLink_url $ .}}" style="float: left;">☞</a> {{comment_html .Body}}</li>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
</ul>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{with .PAst}}
|
2014-02-21 17:51:51 -07:00
|
|
|
{{range $filename, $ast := .}}
|
|
|
|
<a href="{{$filename|srcLink|html}}">{{$filename|filename|html}}</a>:<pre>{{node_html $ $ast false}}</pre>
|
|
|
|
{{end}}
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{with .Dirs}}
|
|
|
|
{{/* DirList entries are numbers and strings - no need for FSet */}}
|
|
|
|
{{if $.PDoc}}
|
|
|
|
<h2 id="pkg-subdirectories">Subdirectories</h2>
|
2014-08-20 17:53:57 -06:00
|
|
|
{{end}}
|
2018-03-17 13:16:28 -06:00
|
|
|
<div class="pkg-dir">
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th class="pkg-name">Name</th>
|
|
|
|
<th class="pkg-synopsis">Synopsis</th>
|
|
|
|
</tr>
|
2015-04-17 17:09:18 -06:00
|
|
|
|
2019-11-25 10:50:53 -07:00
|
|
|
{{if not (or (eq $.Dirname "/src/cmd") $.DirFlat)}}
|
2018-03-17 13:16:28 -06:00
|
|
|
<tr>
|
|
|
|
<td colspan="2"><a href="..">..</a></td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
2015-04-17 17:09:18 -06:00
|
|
|
|
2018-03-17 13:16:28 -06:00
|
|
|
{{range .List}}
|
2018-01-28 07:23:55 -07:00
|
|
|
<tr>
|
2018-03-17 13:16:28 -06:00
|
|
|
{{if $.DirFlat}}
|
|
|
|
{{if .HasPkg}}
|
|
|
|
<td class="pkg-name">
|
|
|
|
<a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Path}}</a>
|
|
|
|
</td>
|
2015-04-17 17:09:18 -06:00
|
|
|
{{end}}
|
|
|
|
{{else}}
|
2018-03-17 13:16:28 -06:00
|
|
|
<td class="pkg-name" style="padding-left: {{multiply .Depth 20}}px;">
|
|
|
|
<a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Name}}</a>
|
|
|
|
</td>
|
2015-04-17 17:09:18 -06:00
|
|
|
{{end}}
|
2018-03-17 13:16:28 -06:00
|
|
|
<td class="pkg-synopsis">
|
|
|
|
{{html .Synopsis}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
</table>
|
2018-01-28 07:23:55 -07:00
|
|
|
</div>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|