go.tools/godoc/static/package.html: remove extra tag; indent with tabs.

LGTM=gri
R=golang-codereviews, gobot, rsc, gri
CC=golang-codereviews
https://golang.org/cl/120380044
This commit is contained in:
Oling Cat 2014-08-26 13:22:54 -07:00 committed by Robert Griesemer
parent e14fb0e1ee
commit 5a1d3be754
1 changed files with 33 additions and 34 deletions

View File

@ -11,9 +11,9 @@
--> -->
{{with .PDoc}} {{with .PDoc}}
<script type='text/javascript'> <script type='text/javascript'>
document.ANALYSIS_DATA = {{$.AnalysisData}}; document.ANALYSIS_DATA = {{$.AnalysisData}};
document.CALLGRAPH = {{$.CallGraph}}; document.CALLGRAPH = {{$.CallGraph}};
</script> </script>
{{if $.IsMain}} {{if $.IsMain}}
{{/* command documentation */}} {{/* command documentation */}}
@ -117,35 +117,34 @@
</div> <!-- .expanded --> </div> <!-- .expanded -->
<div class="expanded"> <div class="expanded">
<h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2> <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
<p> <p>
In the call graph viewer below, each node In the call graph viewer below, each node
is a function belonging to this package is a function belonging to this package
and its children are the functions it and its children are the functions it
calls&mdash;perhaps dynamically. calls&mdash;perhaps dynamically.
</p> </p>
<p> <p>
The root nodes are the entry points of the The root nodes are the entry points of the
package: functions that may be called from package: functions that may be called from
outside the package. outside the package.
There may be non-exported or anonymous There may be non-exported or anonymous
functions among them if they are called functions among them if they are called
dynamically from another package. dynamically from another package.
</p> </p>
<p> <p>
Click a node to visit that function's source code. Click a node to visit that function's source code.
From there you can visit its callers by From there you can visit its callers by
clicking its declaring <code>func</code> clicking its declaring <code>func</code>
token. token.
</p> </p>
<p> <p>
Functions may be omitted if they were Functions may be omitted if they were
determined to be unreachable in the determined to be unreachable in the
particular programs or tests that were particular programs or tests that were
analyzed. analyzed.
</p> </p>
<!-- Zero means show all package entry points. --> <!-- Zero means show all package entry points. -->
<ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul> <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
</script>
</div> </div>
</div> <!-- #pkg-callgraph --> </div> <!-- #pkg-callgraph -->
@ -200,7 +199,7 @@
<pre>{{node_html $ .Decl true}}</pre> <pre>{{node_html $ .Decl true}}</pre>
{{comment_html .Doc}} {{comment_html .Doc}}
{{example_html $ .Name}} {{example_html $ .Name}}
{{callgraph_html $ "" .Name}} {{callgraph_html $ "" .Name}}
{{end}} {{end}}
{{range .Methods}} {{range .Methods}}
@ -210,7 +209,7 @@
{{comment_html .Doc}} {{comment_html .Doc}}
{{$name := printf "%s_%s" $tname .Name}} {{$name := printf "%s_%s" $tname .Name}}
{{example_html $ $name}} {{example_html $ $name}}
{{callgraph_html $ .Recv .Name}} {{callgraph_html $ .Recv .Name}}
{{end}} {{end}}
{{end}} {{end}}
{{end}} {{end}}