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-08-11 14:24:13 -06:00
|
|
|
{{$FSet := .FSet}}
|
|
|
|
{{$Info := .}}
|
|
|
|
{{with .PAst}}
|
|
|
|
<pre>{{html_esc . $FSet}}</pre>
|
|
|
|
{{end}}
|
|
|
|
{{with .PDoc}}
|
2009-10-01 15:08:00 -06:00
|
|
|
<!-- PackageName is printed as title by the top-level template -->
|
2011-08-11 14:24:13 -06:00
|
|
|
{{if $Info.IsPkg}}
|
|
|
|
{{/* ImportPath is a string - no need for FSet */}}
|
|
|
|
<p><code>import "{{.ImportPath|html_esc}}"</code></p>
|
|
|
|
{{end}}
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
{{if $Info.IsPkg}}
|
|
|
|
{{with .Filenames}}
|
|
|
|
{{/* Filenames are strings - no need for FSet */}}
|
2009-11-03 20:40:26 -07:00
|
|
|
<p>
|
|
|
|
<h4>Package files</h4>
|
|
|
|
<span style="font-size:90%">
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .}}
|
|
|
|
<a href="/{{.|url_src}}">{{.|localname}}</a>
|
|
|
|
{{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 .}}
|
|
|
|
{{html_comment .Doc}}
|
|
|
|
<pre>{{html_esc .Decl $FSet}}</pre>
|
|
|
|
{{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 .}}
|
|
|
|
{{html_comment .Doc}}
|
|
|
|
<pre>{{html_esc .Decl $FSet}}</pre>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Funcs}}
|
|
|
|
{{range .}}
|
|
|
|
{{/* Name is a string - no need for FSet */}}
|
|
|
|
<h2 id="{{.Name|html_esc}}">func <a href="/{{url_pos .Decl $FSet}}">{{.Name|html_esc}}</a></h2>
|
|
|
|
<p><code>{{html_esc .Decl $FSet}}</code></p>
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Types}}
|
|
|
|
{{range $type := .}}
|
|
|
|
<h2 id="{{html_esc .Type.Name $FSet}}">type <a href="/{{url_pos .Decl $FSet}}">{{html_esc .Type.Name $FSet}}</a></h2>
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
<p><pre>{{html_esc .Decl $FSet}}</pre></p>
|
|
|
|
{{range .Consts}}
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
<pre>{{html_esc .Decl $FSet}}</pre>
|
|
|
|
{{end}}
|
|
|
|
{{range .Vars}}
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
<pre>{{html_esc .Decl $FSet}}</pre>
|
|
|
|
{{end}}
|
|
|
|
{{range .Factories}}
|
|
|
|
<h3 id="{{html_esc $type.Type.Name $FSet}}.{{.Name|html_esc}}">func <a href="/{{url_pos .Decl $FSet}}">{{.Name|html_esc}}</a></h3>
|
|
|
|
<p><code>{{html_esc .Decl $FSet}}</code></p>
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
{{end}}
|
|
|
|
{{range .Methods}}
|
|
|
|
<h3 id="{{html_esc $type.Type.Name $FSet}}.{{.Name|html_esc}}">func ({{html_esc .Recv $FSet}}) <a href="/{{url_pos .Decl $FSet}}">{{.Name|html_esc}}</a></h3>
|
|
|
|
<p><code>{{html_esc .Decl $FSet}}</code></p>
|
|
|
|
{{.Doc|html_comment}}
|
|
|
|
{{end}}
|
|
|
|
{{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 .}}
|
|
|
|
{{.|html_comment}}
|
|
|
|
{{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 .}}
|
|
|
|
<a href="?p={{html .}}">{{html .}}</a><br />
|
|
|
|
{{end}}
|
2010-03-12 19:16:21 -07:00
|
|
|
</p>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
|
|
|
{{with .Dirs}}
|
2011-05-23 23:45:08 -06: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 14:24:13 -06:00
|
|
|
{{/* 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-08-11 14:24:13 -06:00
|
|
|
<th align="left" colspan="{{.MaxHeight|html_esc}}">Name</th>
|
2009-11-08 17:47:32 -07:00
|
|
|
<td width="25"> </td>
|
|
|
|
<th align="left">Synopsis</th>
|
|
|
|
</tr>
|
2009-11-10 00:22:04 -07:00
|
|
|
<tr>
|
2010-12-12 15:16:37 -07:00
|
|
|
<th align="left"><a href="..">..</a></th>
|
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-08-11 14:24:13 -06:00
|
|
|
{{.Depth|padding}}
|
|
|
|
<td align="left" colspan="{{html .Height}}"><a href="{{html .Path}}">{{html .Name}}</a></td>
|
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}}
|