github.com/powerman/golang-tools@v0.1.11-0.20220410185822-5ad214d8d803/godoc/static/packageroot.html (about) 1 <!-- 2 Copyright 2018 The Go Authors. All rights reserved. 3 Use of this source code is governed by a BSD-style 4 license that can be found in the LICENSE file. 5 --> 6 <!-- 7 Note: Static (i.e., not template-generated) href and id 8 attributes start with "pkg-" to make it impossible for 9 them to conflict with generated attributes (some of which 10 correspond to Go identifiers). 11 --> 12 {{with .PAst}} 13 {{range $filename, $ast := .}} 14 <a href="{{$filename|srcLink|html}}">{{$filename|filename|html}}</a>:<pre>{{node_html $ $ast false}}</pre> 15 {{end}} 16 {{end}} 17 18 {{with .Dirs}} 19 {{/* DirList entries are numbers and strings - no need for FSet */}} 20 {{if $.PDoc}} 21 <h2 id="pkg-subdirectories">Subdirectories</h2> 22 {{end}} 23 <div id="manual-nav"> 24 <img alt="" class="gopher" src="/lib/godoc/gopher/pkg.png"/> 25 <dl> 26 <dt><a href="#stdlib">Standard library</a></dt> 27 {{if hasThirdParty .List }} 28 <dt><a href="#thirdparty">Third party</a></dt> 29 {{end}} 30 <dt><a href="#other">Other packages</a></dt> 31 <dd><a href="#subrepo">Sub-repositories</a></dd> 32 <dd><a href="#community">Community</a></dd> 33 </dl> 34 </div> 35 36 <div id="stdlib" class="toggleVisible"> 37 <div class="collapsed"> 38 <h2 class="toggleButton" title="Click to show Standard library section">Standard library ▹</h2> 39 </div> 40 <div class="expanded"> 41 <h2 class="toggleButton" title="Click to hide Standard library section">Standard library ▾</h2> 42 <div class="pkg-dir"> 43 <table> 44 <tr> 45 <th class="pkg-name">Name</th> 46 <th class="pkg-synopsis">Synopsis</th> 47 </tr> 48 49 {{range .List}} 50 <tr> 51 {{if eq .RootType "GOROOT"}} 52 {{if $.DirFlat}} 53 {{if .HasPkg}} 54 <td class="pkg-name"> 55 <a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Path}}</a> 56 </td> 57 {{end}} 58 {{else}} 59 <td class="pkg-name" style="padding-left: {{multiply .Depth 20}}px;"> 60 <a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Name}}</a> 61 </td> 62 {{end}} 63 <td class="pkg-synopsis"> 64 {{html .Synopsis}} 65 </td> 66 {{end}} 67 </tr> 68 {{end}} 69 </table> 70 </div> <!-- .pkg-dir --> 71 </div> <!-- .expanded --> 72 </div> <!-- #stdlib .toggleVisible --> 73 74 {{if hasThirdParty .List }} 75 <div id="thirdparty" class="toggleVisible"> 76 <div class="collapsed"> 77 <h2 class="toggleButton" title="Click to show Third party section">Third party ▹</h2> 78 </div> 79 <div class="expanded"> 80 <h2 class="toggleButton" title="Click to hide Third party section">Third party ▾</h2> 81 <div class="pkg-dir"> 82 <table> 83 <tr> 84 <th class="pkg-name">Name</th> 85 <th class="pkg-synopsis">Synopsis</th> 86 </tr> 87 88 {{range .List}} 89 <tr> 90 {{if eq .RootType "GOPATH"}} 91 {{if $.DirFlat}} 92 {{if .HasPkg}} 93 <td class="pkg-name"> 94 <a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Path}}</a> 95 </td> 96 {{end}} 97 {{else}} 98 <td class="pkg-name" style="padding-left: {{multiply .Depth 20}}px;"> 99 <a href="{{html .Path}}/{{modeQueryString $.Mode | html}}">{{html .Name}}</a> 100 </td> 101 {{end}} 102 <td class="pkg-synopsis"> 103 {{html .Synopsis}} 104 </td> 105 {{end}} 106 </tr> 107 {{end}} 108 </table> 109 </div> <!-- .pkg-dir --> 110 </div> <!-- .expanded --> 111 </div> <!-- #stdlib .toggleVisible --> 112 {{end}} 113 114 <h2 id="other">Other packages</h2> 115 <h3 id="subrepo">Sub-repositories</h3> 116 <p> 117 These packages are part of the Go Project but outside the main Go tree. 118 They are developed under looser <a href="https://golang.org/doc/go1compat">compatibility requirements</a> than the Go core. 119 Install them with "<a href="/cmd/go/#hdr-Download_and_install_packages_and_dependencies">go get</a>". 120 </p> 121 <ul> 122 <li><a href="//pkg.go.dev/golang.org/x/benchmarks">benchmarks</a> — benchmarks to measure Go as it is developed.</li> 123 <li><a href="//pkg.go.dev/golang.org/x/blog">blog</a> — <a href="//blog.golang.org">blog.golang.org</a>'s implementation.</li> 124 <li><a href="//pkg.go.dev/golang.org/x/build">build</a> — <a href="//build.golang.org">build.golang.org</a>'s implementation.</li> 125 <li><a href="//pkg.go.dev/golang.org/x/crypto">crypto</a> — additional cryptography packages.</li> 126 <li><a href="//pkg.go.dev/golang.org/x/debug">debug</a> — an experimental debugger for Go.</li> 127 <li><a href="//pkg.go.dev/golang.org/x/image">image</a> — additional imaging packages.</li> 128 <li><a href="//pkg.go.dev/golang.org/x/mobile">mobile</a> — experimental support for Go on mobile platforms.</li> 129 <li><a href="//pkg.go.dev/golang.org/x/net">net</a> — additional networking packages.</li> 130 <li><a href="//pkg.go.dev/golang.org/x/perf">perf</a> — packages and tools for performance measurement, storage, and analysis.</li> 131 <li><a href="//pkg.go.dev/golang.org/x/pkgsite">pkgsite</a> — home of the pkg.go.dev website.</li> 132 <li><a href="//pkg.go.dev/golang.org/x/review">review</a> — a tool for working with Gerrit code reviews.</li> 133 <li><a href="//pkg.go.dev/golang.org/x/sync">sync</a> — additional concurrency primitives.</li> 134 <li><a href="//pkg.go.dev/golang.org/x/sys">sys</a> — packages for making system calls.</li> 135 <li><a href="//pkg.go.dev/golang.org/x/text">text</a> — packages for working with text.</li> 136 <li><a href="//pkg.go.dev/golang.org/x/time">time</a> — additional time packages.</li> 137 <li><a href="//pkg.go.dev/github.com/powerman/golang-tools">tools</a> — godoc, goimports, gorename, and other tools.</li> 138 <li><a href="//pkg.go.dev/golang.org/x/tour">tour</a> — <a href="//tour.golang.org">tour.golang.org</a>'s implementation.</li> 139 <li><a href="//pkg.go.dev/golang.org/x/exp">exp</a> — experimental and deprecated packages (handle with care; may change without warning).</li> 140 </ul> 141 142 <h3 id="community">Community</h3> 143 <p> 144 These services can help you find Open Source packages provided by the community. 145 </p> 146 <ul> 147 <li><a href="//pkg.go.dev">Pkg.go.dev</a> - the Go package discovery site.</li> 148 <li><a href="/wiki/Projects">Projects at the Go Wiki</a> - a curated list of Go projects.</li> 149 </ul> 150 {{end}}