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