123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268 |
- <!--
- 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.
- -->
- <!--
- Note: Static (i.e., not template-generated) href and id
- attributes start with "pkg-" to make it impossible for
- them to conflict with generated attributes (some of which
- correspond to Go identifiers).
- -->
- {{with .PDoc}}
- <script type='text/javascript'>
- document.ANALYSIS_DATA = {{$.AnalysisData}};
- document.CALLGRAPH = {{$.CallGraph}};
- </script>
- {{if $.IsMain}}
- {{/* command documentation */}}
- {{comment_html .Doc}}
- {{else}}
- {{/* package documentation */}}
- <div id="short-nav">
- <dl>
- <dd><code>import "github.com/aws/aws-sdk-go/{{html .ImportPath}}"</code></dd>
- </dl>
- <dl>
- <dd><a href="#pkg-overview" class="overviewLink">Overview</a></dd>
- {{if .Consts}}
- <dd><a href="#pkg-constants" class="examplesLink">Constants</a></dd>
- {{end}}
- {{if $.Examples}}
- <dd><a href="#pkg-examples" class="examplesLink">Examples</a></dd>
- {{end}}
- </dl>
- </div>
- <!-- The package's Name is printed as title by the top-level template -->
- <div id="pkg-overview" class="toggleVisible">
- <div class="collapsed">
- <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
- </div>
- <div class="expanded">
- <h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
- {{comment_html .Doc}}
- <p>
- {{if ne $.IfaceLink ""}}
- The stub package, <a href={{$.IfaceLink}}>{{$.PDoc.Name}}iface</a>, can be used to provide alternative implementations of service clients,
- such as mocking the client for testing.
- {{end}}
- </p?>
- </div>
- </div>
- {{example_html $ ""}}
- <div id="pkg-operations" class="toggle">
- <div class="collapsed">
- <h2 class="toggleButton" title="Click to show Index section">Operations ▹</h2>
- </div>
- <div class="expanded">
- <h2 class="toggleButton" title="Click to hide Index section">Operations ▾</h2>
- <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
- <div id="manual-nav">
- <dl>
- {{range .Funcs}}
- {{$name_html := html .Name}}
- <dd><a href="#{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
- {{end}}
- {{range .Types}}
- {{$tname_html := html .Name}}
- {{range .Funcs}}
- {{$name_html := html .Name}}
- <dd><a href="#{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
- {{end}}
- {{range .Methods}}
- <!-- Hide stringers -->
- {{if (and (ne .Name "String") (ne .Name "GoString")) }}
- {{if (ne .Name "Validate") }}
- {{$name_html := html .Name}}
- <dd><a href="#{{$tname_html}}.{{$name_html}}">{{node_html $ .Decl false | sanitize}}</a></dd>
- {{end}}
- {{end}}
- {{end}}
- {{end}}
- {{if $.Notes}}
- {{range $marker, $item := $.Notes}}
- <dd><a href="#pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</a></dd>
- {{end}}
- {{end}}
- </dl>
- </div><!-- #manual-nav -->
- <!--{{if $.Examples}}
- <div id="pkg-examples">
- <h4>Examples</h4>
- <dl>
- {{range $.Examples}}
- <dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>
- {{end}}
- </dl>
- </div>
- {{end}}-->
- <!--{{with .Filenames}}
- <h4>Package files</h4>
- <p>
- <span style="font-size:90%">
- {{range .}}
- <a href="{{.|srcLink|html}}">{{.|filename|html}}</a>
- {{end}}
- </span>
- </p>
- {{end}}-->
- </div><!-- .expanded -->
- </div><!-- #pkg-index -->
- <div id="pkg-types" class="toggle">
- <div class="collapsed">
- <h2 class="toggleButton" title="Click to show Index section">Types ▹</h2>
- </div>
- <div class="expanded">
- <h2 class="toggleButton" title="Click to hide Index section">Types ▾</h2>
- {{if .Vars}}
- <dd><a href="#pkg-variables">Variables</a></dd>
- {{end}}
- {{range .Types}}
- {{$tname_html := html .Name}}
- <dd><a href="#{{$tname_html}}">type {{$tname_html}}</a></dd>
- {{end}}
- </div>
- </div>
- {{if $.Examples}}
- <div id="pkg-examples" class="toggle">
- <div class="collapsed">
- <h2 class="toggleButton" title="Click to show Index section">Examples ▹</h2>
- </div>
- <div class="expanded">
- <h2 class="toggleButton" title="Click to hide Index section">Examples ▾</h2>
- <div id="pkg-examples">
- <dl>
- {{range $.Examples}}
- <dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>
- {{end}}
- </dl>
- </div>
- </div>
- </div>
- {{end}}
- <div id="pkg-callgraph" class="toggle" style="display: none">
- <div class="collapsed">
- <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
- </div> <!-- .expanded -->
- <div class="expanded">
- <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
- <p>
- In the call graph viewer below, each node
- is a function belonging to this package
- and its children are the functions it
- calls—perhaps dynamically.
- </p>
- <p>
- The root nodes are the entry points of the
- package: functions that may be called from
- outside the package.
- There may be non-exported or anonymous
- functions among them if they are called
- dynamically from another package.
- </p>
- <p>
- Click a node to visit that function's source code.
- From there you can visit its callers by
- clicking its declaring <code>func</code>
- token.
- </p>
- <p>
- Functions may be omitted if they were
- determined to be unreachable in the
- particular programs or tests that were
- analyzed.
- </p>
- <!-- Zero means show all package entry points. -->
- <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
- </div>
- </div> <!-- #pkg-callgraph -->
- {{with .Consts}}
- <h2 id="pkg-constants">Constants</h2>
- {{range .}}
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{end}}
- {{end}}
- {{with .Vars}}
- <h2 id="pkg-variables">Variables</h2>
- {{range .}}
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{end}}
- {{end}}
- {{range .Funcs}}
- {{/* Name is a string - no need for FSet */}}
- {{$name_html := html .Name}}
- <h2 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h2>
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{example_html $ .Name}}
- {{callgraph_html $ "" .Name}}
- {{end}}
- {{range .Types}}
- {{$tname := .Name}}
- {{$tname_html := html .Name}}
- <h2 id="{{$tname_html}}">type <a href="{{posLink_url $ .Decl}}">{{$tname_html}}</a></h2>
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{range .Consts}}
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{end}}
- {{range .Vars}}
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{end}}
- {{example_html $ $tname}}
- {{implements_html $ $tname}}
- {{methodset_html $ $tname}}
- {{range .Funcs}}
- {{$name_html := html .Name}}
- <h3 id="{{$name_html}}">func <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h3>
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{example_html $ .Name}}
- {{callgraph_html $ "" .Name}}
- {{end}}
- {{range .Methods}}
- {{$name_html := html .Name}}
- <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="{{posLink_url $ .Decl}}">{{$name_html}}</a></h3>
- <pre>{{node_html $ .Decl true}}</pre>
- {{comment_html .Doc}}
- {{$name := printf "%s_%s" $tname .Name}}
- {{example_html $ $name}}
- {{callgraph_html $ .Recv .Name}}
- {{end}}
- {{end}}
- {{end}}
- {{with $.Notes}}
- {{range $marker, $content := .}}
- <h2 id="pkg-note-{{$marker}}">{{noteTitle $marker | html}}s</h2>
- <ul style="list-style: none; padding: 0;">
- {{range .}}
- <li><a href="{{posLink_url $ .}}">☞</a> {{html .Body}}</li>
- {{end}}
- </ul>
- {{end}}
- {{end}}
- {{end}}
- {{with .PAst}}
- {{range $filename, $ast := .}}
- <a href="{{$filename|srcLink|html}}">{{$filename|filename|html}}</a>:<pre>{{node_html $ $ast false}}</pre>
- {{end}}
- {{end}}
|