Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / godoc / static / example.html
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/godoc/static/example.html b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/godoc/static/example.html
new file mode 100644 (file)
index 0000000..1e86b25
--- /dev/null
@@ -0,0 +1,30 @@
+<div id="example_{{.Name}}" class="toggle">
+       <div class="collapsed">
+               <p class="exampleHeading toggleButton">▹ <span class="text">Example{{example_suffix .Name}}</span></p>
+       </div>
+       <div class="expanded">
+               <p class="exampleHeading toggleButton">▾ <span class="text">Example{{example_suffix .Name}}</span></p>
+               {{with .Doc}}<p>{{html .}}</p>{{end}}
+               {{$output := .Output}}
+               {{with .Play}}
+                       <div class="play">
+                               <div class="input"><textarea class="code" spellcheck="false">{{html .}}</textarea></div>
+                               <div class="output"><pre>{{html $output}}</pre></div>
+                               <div class="buttons">
+                                       <a class="run" title="Run this code [shift-enter]">Run</a>
+                                       <a class="fmt" title="Format this code">Format</a>
+                                       {{if not $.GoogleCN}}
+                                       <a class="share" title="Share this code">Share</a>
+                                       {{end}}
+                               </div>
+                       </div>
+               {{else}}
+                       <p>Code:</p>
+                       <pre class="code">{{.Code}}</pre>
+                       {{with .Output}}
+                       <p>Output:</p>
+                       <pre class="output">{{html .}}</pre>
+                       {{end}}
+               {{end}}
+       </div>
+</div>