2009-09-17 17:04:51 -07: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.
|
|
|
|
|
-->
|
2011-10-18 16:23:35 -04:00
|
|
|
{{with .PDoc}}
|
2011-08-12 10:06:32 -07:00
|
|
|
{{if $.IsPkg}}
|
2012-01-26 13:02:03 -05:00
|
|
|
<div id="short-nav">
|
|
|
|
|
<dl>
|
|
|
|
|
<dd><code>import "{{html .ImportPath}}"</code></dd>
|
|
|
|
|
</dl>
|
|
|
|
|
<dl>
|
2012-02-13 14:34:30 +11:00
|
|
|
<dd><a href="#overview">Overview</a></dd>
|
|
|
|
|
<dd><a href="#index">Index</a></dd>
|
2012-02-03 10:17:37 -08:00
|
|
|
{{if $.Dirs}}
|
2012-02-14 22:18:29 -02:00
|
|
|
<dd><a href="#subdirectories">Subdirectories</a></dd>
|
2012-02-03 10:17:37 -08:00
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
</dl>
|
|
|
|
|
</div>
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="overview">Overview</h2>
|
2012-01-26 13:02:03 -05:00
|
|
|
<!-- The package's Name is printed as title by the top-level template -->
|
|
|
|
|
{{comment_html .Doc}}
|
2012-02-16 09:44:01 +11:00
|
|
|
{{example_html "" $.Examples $.FSet}}
|
2012-01-26 13:02:03 -05:00
|
|
|
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="index">Index</h2>
|
2012-01-26 13:02:03 -05:00
|
|
|
<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
|
|
|
|
|
<div id="manual-nav">
|
|
|
|
|
<dl>
|
|
|
|
|
{{if .Consts}}
|
2012-02-15 00:59:01 -08:00
|
|
|
<dd><a href="#constants">Constants</a></dd>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
|
|
|
|
{{if .Vars}}
|
2012-02-15 00:59:01 -08:00
|
|
|
<dd><a href="#variables">Variables</a></dd>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
|
|
|
|
{{range .Funcs}}
|
|
|
|
|
{{$name_html := html .Name}}
|
|
|
|
|
<dd><a href="#{{$name_html}}">{{node_html .Decl $.FSet}}</a></dd>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{range .Types}}
|
|
|
|
|
{{$tname_html := html .Name}}
|
|
|
|
|
<dd><a href="#{{$tname_html}}">type {{$tname_html}}</a></dd>
|
|
|
|
|
{{range .Funcs}}
|
|
|
|
|
{{$name_html := html .Name}}
|
|
|
|
|
<dd> <a href="#{{$name_html}}">{{node_html .Decl $.FSet}}</a></dd>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{range .Methods}}
|
|
|
|
|
{{$name_html := html .Name}}
|
|
|
|
|
<dd> <a href="#{{$tname_html}}.{{$name_html}}">{{node_html .Decl $.FSet}}</a></dd>
|
|
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|
|
|
|
|
{{if .Bugs}}
|
2012-02-15 00:59:01 -08:00
|
|
|
<dd><a href="#bugs">Bugs</a></dd>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
|
|
|
|
</dl>
|
2012-02-13 21:22:36 +11:00
|
|
|
|
2012-02-14 14:52:00 +11:00
|
|
|
{{if $.Examples}}
|
|
|
|
|
<h4>Examples</h4>
|
|
|
|
|
<dl>
|
|
|
|
|
{{range $.Examples}}
|
2012-02-16 09:44:01 +11:00
|
|
|
<dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>
|
2012-02-14 14:52:00 +11:00
|
|
|
{{end}}
|
|
|
|
|
</dl>
|
|
|
|
|
{{end}}
|
|
|
|
|
|
2012-02-13 21:22:36 +11:00
|
|
|
{{with .Filenames}}
|
|
|
|
|
<h4>Package files</h4>
|
|
|
|
|
<p>
|
|
|
|
|
<span style="font-size:90%">
|
|
|
|
|
{{range .}}
|
|
|
|
|
<a href="/{{.|srcLink}}">{{.|filename|html}}</a>
|
|
|
|
|
{{end}}
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
|
|
|
|
|
{{with .Consts}}
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="constants">Constants</h2>
|
2011-08-11 13:24:13 -07:00
|
|
|
{{range .}}
|
2012-01-26 13:02:03 -05:00
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-02-23 12:44:11 -08:00
|
|
|
{{comment_html .Doc}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{with .Vars}}
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="variables">Variables</h2>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .}}
|
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-02-23 12:44:11 -08:00
|
|
|
{{comment_html .Doc}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
2011-10-18 16:23:35 -04:00
|
|
|
{{end}}
|
2012-01-12 17:36:57 -08:00
|
|
|
{{range .Funcs}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{/* Name is a string - no need for FSet */}}
|
2011-08-17 16:38:58 -07:00
|
|
|
{{$name_html := html .Name}}
|
2012-01-26 13:02:03 -05:00
|
|
|
<h2 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h2>
|
2012-02-23 12:44:11 -08:00
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2011-08-12 15:43:10 -07:00
|
|
|
{{comment_html .Doc}}
|
2011-10-06 11:56:17 -07:00
|
|
|
{{example_html .Name $.Examples $.FSet}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .Types}}
|
|
|
|
|
{{$tname := .Name}}
|
|
|
|
|
{{$tname_html := html .Name}}
|
|
|
|
|
<h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
|
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-02-23 12:44:11 -08:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
|
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .Consts}}
|
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-02-23 12:44:11 -08:00
|
|
|
{{comment_html .Doc}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
2012-02-23 12:44:11 -08:00
|
|
|
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .Vars}}
|
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-02-23 12:44:11 -08:00
|
|
|
{{comment_html .Doc}}
|
2012-01-26 13:02:03 -05:00
|
|
|
{{end}}
|
2012-02-23 12:44:11 -08:00
|
|
|
|
2012-01-26 13:02:03 -05:00
|
|
|
{{example_html $tname $.Examples $.FSet}}
|
2012-02-23 12:44:11 -08:00
|
|
|
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .Funcs}}
|
|
|
|
|
{{$name_html := html .Name}}
|
|
|
|
|
<h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>
|
2012-02-23 12:44:11 -08:00
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
|
{{example_html .Name $.Examples $.FSet}}
|
|
|
|
|
{{end}}
|
2012-02-23 12:44:11 -08:00
|
|
|
|
2012-01-26 13:02:03 -05:00
|
|
|
{{range .Methods}}
|
|
|
|
|
{{$name_html := html .Name}}
|
|
|
|
|
<h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>
|
2012-02-23 12:44:11 -08:00
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
|
{{$name := printf "%s_%s" $tname .Name}}
|
|
|
|
|
{{example_html $name $.Examples $.FSet}}
|
|
|
|
|
{{end}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2012-02-20 12:32:43 +11:00
|
|
|
</div>
|
2012-01-26 13:02:03 -05:00
|
|
|
{{else}} {{/* not a package; is a command */}}
|
|
|
|
|
{{comment_html .Doc}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
|
2011-08-11 13:24:13 -07:00
|
|
|
{{with .Bugs}}
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="bugs">Bugs</h2>
|
2011-08-11 13:24:13 -07:00
|
|
|
{{range .}}
|
2011-08-12 15:43:10 -07:00
|
|
|
{{comment_html .}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|
|
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
|
|
|
|
|
{{with .PAst}}
|
|
|
|
|
<pre>{{node_html . $.FSet}}</pre>
|
|
|
|
|
{{end}}
|
|
|
|
|
|
2011-08-11 13:24:13 -07:00
|
|
|
{{with .PList}}
|
2010-03-12 18:16:21 -08:00
|
|
|
<h2>Other packages</h2>
|
|
|
|
|
<p>
|
2011-08-11 13:24:13 -07:00
|
|
|
{{/* PList entries are strings - no need for FSet */}}
|
|
|
|
|
{{range .}}
|
2011-08-13 14:00:16 +10:00
|
|
|
<a href="?p={{urlquery .}}">{{html .}}</a><br />
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2010-03-12 18:16:21 -08:00
|
|
|
</p>
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2012-01-26 13:02:03 -05:00
|
|
|
|
2011-08-11 13:24:13 -07:00
|
|
|
{{with .Dirs}}
|
|
|
|
|
{{/* DirList entries are numbers and strings - no need for FSet */}}
|
2012-02-13 14:34:30 +11:00
|
|
|
<h2 id="subdirectories">Subdirectories</h2>
|
2012-02-13 21:22:36 +11:00
|
|
|
<table class="dir">
|
2009-11-08 16:47:32 -08:00
|
|
|
<tr>
|
2012-02-13 21:22:36 +11:00
|
|
|
<th>Name</th>
|
|
|
|
|
<th> </th>
|
|
|
|
|
<th style="text-align: left; width: auto">Synopsis</th>
|
2009-11-08 16:47:32 -08:00
|
|
|
</tr>
|
2012-02-27 11:18:00 -08:00
|
|
|
{{if not $.DirFlat}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td><a href="..">..</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{range .List}}
|
2012-02-22 09:25:56 +11:00
|
|
|
{{if $.DirFlat}}
|
2012-02-27 11:18:00 -08:00
|
|
|
{{if .HasPkg}}
|
|
|
|
|
<tr>
|
|
|
|
|
<td><a href="{{html .Path}}">{{html .Path}}</a></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td style="width: auto">{{html .Synopsis}}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{{end}}
|
2012-02-22 09:25:56 +11:00
|
|
|
{{else}}
|
2012-02-27 11:18:00 -08:00
|
|
|
<tr>
|
|
|
|
|
<td>{{repeat ` ` .Depth}}<a href="{{html .Path}}">{{html .Name}}</a></td>
|
|
|
|
|
<td> </td>
|
|
|
|
|
<td style="width: auto">{{html .Synopsis}}</td>
|
|
|
|
|
</tr>
|
2012-02-22 09:25:56 +11:00
|
|
|
{{end}}
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|
2009-11-08 16:47:32 -08:00
|
|
|
</table>
|
2011-08-11 13:24:13 -07:00
|
|
|
{{end}}
|