2009-09-18 00:04:51 +00: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-08-11 20:24:13 +00:00
|
|
|
{{with .PAst}}
|
2011-08-12 22:43:10 +00:00
|
|
|
<pre>{{node_html . $.FSet}}</pre>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{with .PDoc}}
|
2009-10-01 21:08:00 +00:00
|
|
|
<!-- PackageName is printed as title by the top-level template -->
|
2011-08-12 17:06:32 +00:00
|
|
|
{{if $.IsPkg}}
|
|
|
|
<p><code>import "{{html .ImportPath}}"</code></p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
2011-08-12 17:06:32 +00:00
|
|
|
{{if $.IsPkg}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{with .Filenames}}
|
2009-11-04 03:40:26 +00:00
|
|
|
<p>
|
|
|
|
<h4>Package files</h4>
|
|
|
|
<span style="font-size:90%">
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .}}
|
2011-08-12 22:43:10 +00:00
|
|
|
<a href="/{{.|srcLink}}">{{.|filename|html}}</a>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
2009-11-04 03:40:26 +00:00
|
|
|
</span>
|
|
|
|
</p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Consts}}
|
2009-11-16 23:25:16 +00:00
|
|
|
<h2 id="Constants">Constants</h2>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Vars}}
|
2009-11-16 23:25:16 +00:00
|
|
|
<h2 id="Variables">Variables</h2>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Funcs}}
|
|
|
|
{{range .}}
|
|
|
|
{{/* Name is a string - no need for FSet */}}
|
2011-08-17 23:38:58 +00:00
|
|
|
{{$name_html := html .Name}}
|
|
|
|
<h2 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h2>
|
2011-08-12 22:43:10 +00:00
|
|
|
<p><code>{{node_html .Decl $.FSet}}</code></p>
|
|
|
|
{{comment_html .Doc}}
|
2011-10-06 18:56:17 +00:00
|
|
|
{{example_html .Name $.Examples $.FSet}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Types}}
|
2011-08-12 17:06:32 +00:00
|
|
|
{{range .}}
|
2011-10-06 18:56:17 +00:00
|
|
|
{{$tname := printf "%s" .Type.Name}}
|
2011-08-17 23:38:58 +00:00
|
|
|
{{$tname_html := node_html .Type.Name $.FSet}}
|
|
|
|
<h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
<p><pre>{{node_html .Decl $.FSet}}</pre></p>
|
2011-10-06 18:56:17 +00:00
|
|
|
{{example_html $tname $.Examples $.FSet}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .Consts}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{range .Vars}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .Doc}}
|
|
|
|
<pre>{{node_html .Decl $.FSet}}</pre>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{range .Factories}}
|
2011-08-17 23:38:58 +00:00
|
|
|
{{$name_html := html .Name}}
|
2011-09-08 17:37:26 +00:00
|
|
|
<h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>
|
2011-08-12 22:43:10 +00:00
|
|
|
<p><code>{{node_html .Decl $.FSet}}</code></p>
|
|
|
|
{{comment_html .Doc}}
|
2011-10-06 18:56:17 +00:00
|
|
|
{{example_html .Name $.Examples $.FSet}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{range .Methods}}
|
2011-08-17 23:38:58 +00:00
|
|
|
{{$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>
|
2011-08-12 22:43:10 +00:00
|
|
|
<p><code>{{node_html .Decl $.FSet}}</code></p>
|
|
|
|
{{comment_html .Doc}}
|
2011-10-06 18:56:17 +00:00
|
|
|
{{$name := printf "%s_%s" $tname .Name}}
|
|
|
|
{{example_html $name $.Examples $.FSet}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Bugs}}
|
2009-11-16 23:25:16 +00:00
|
|
|
<h2 id="Bugs">Bugs</h2>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .}}
|
2011-08-12 22:43:10 +00:00
|
|
|
{{comment_html .}}
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .PList}}
|
2010-03-13 02:16:21 +00:00
|
|
|
<h2>Other packages</h2>
|
|
|
|
<p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{/* PList entries are strings - no need for FSet */}}
|
|
|
|
{{range .}}
|
2011-08-13 04:00:16 +00:00
|
|
|
<a href="?p={{urlquery .}}">{{html .}}</a><br />
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
2010-03-13 02:16:21 +00:00
|
|
|
</p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
|
|
|
{{with .Dirs}}
|
2011-05-24 05:45:08 +00:00
|
|
|
<p class="detail">
|
|
|
|
Need more packages? The
|
|
|
|
<a href="http://godashboard.appspot.com/package">Package Dashboard</a>
|
|
|
|
provides a list of <a href="/cmd/goinstall/">goinstallable</a> packages.
|
|
|
|
</p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{/* DirList entries are numbers and strings - no need for FSet */}}
|
2009-11-16 23:25:16 +00:00
|
|
|
<h2 id="Subdirectories">Subdirectories</h2>
|
2009-11-09 00:47:32 +00:00
|
|
|
<p>
|
|
|
|
<table class="layout">
|
|
|
|
<tr>
|
2011-08-12 17:06:32 +00:00
|
|
|
<th align="left" colspan="{{html .MaxHeight}}">Name</th>
|
2009-11-09 00:47:32 +00:00
|
|
|
<td width="25"> </td>
|
|
|
|
<th align="left">Synopsis</th>
|
|
|
|
</tr>
|
2009-11-10 07:22:04 +00:00
|
|
|
<tr>
|
2010-12-12 22:16:37 +00:00
|
|
|
<th align="left"><a href="..">..</a></th>
|
2009-11-10 07:22:04 +00:00
|
|
|
</tr>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{range .List}}
|
2009-11-09 00:47:32 +00:00
|
|
|
<tr>
|
2011-08-12 17:06:32 +00:00
|
|
|
{{repeat `<td width="25"></td>` .Depth}}
|
2011-08-11 20:24:13 +00:00
|
|
|
<td align="left" colspan="{{html .Height}}"><a href="{{html .Path}}">{{html .Name}}</a></td>
|
2009-11-09 00:47:32 +00:00
|
|
|
<td></td>
|
2011-08-11 20:24:13 +00:00
|
|
|
<td align="left">{{html .Synopsis}}</td>
|
2009-11-09 00:47:32 +00:00
|
|
|
</tr>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|
2009-11-09 00:47:32 +00:00
|
|
|
</table>
|
|
|
|
</p>
|
2011-08-11 20:24:13 +00:00
|
|
|
{{end}}
|