Add generated file
This PR adds generated files under pkg/client and vendor folder.
This commit is contained in:
62
vendor/golang.org/x/tools/cmd/present/templates/action.tmpl
generated
vendored
Normal file
62
vendor/golang.org/x/tools/cmd/present/templates/action.tmpl
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
{/*
|
||||
This is the action template.
|
||||
It determines how the formatting actions are rendered.
|
||||
*/}
|
||||
|
||||
{{define "section"}}
|
||||
<h{{len .Number}} id="TOC_{{.FormattedNumber}}">{{.FormattedNumber}} {{.Title}}</h{{len .Number}}>
|
||||
{{range .Elem}}{{elem $.Template .}}{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "list"}}
|
||||
<ul>
|
||||
{{range .Bullet}}
|
||||
<li>{{style .}}</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
{{define "text"}}
|
||||
{{if .Pre}}
|
||||
<div class="code"><pre>{{range .Lines}}{{.}}{{end}}</pre></div>
|
||||
{{else}}
|
||||
<p>
|
||||
{{range $i, $l := .Lines}}{{if $i}}{{template "newline"}}
|
||||
{{end}}{{style $l}}{{end}}
|
||||
</p>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
||||
{{define "code"}}
|
||||
<div class="code{{if playable .}} playground{{end}}" {{if .Edit}}contenteditable="true" spellcheck="false"{{end}}>{{.Text}}</div>
|
||||
{{end}}
|
||||
|
||||
{{define "image"}}
|
||||
<div class="image">
|
||||
<img src="{{.URL}}"{{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}}>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{define "video"}}
|
||||
<div class="video">
|
||||
<video {{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}} controls>
|
||||
<source src="{{.URL}}" type="{{.SourceType}}">
|
||||
</video>
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{define "background"}}
|
||||
<div class="background">
|
||||
<img src="{{.URL}}">
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{define "iframe"}}
|
||||
<iframe src="{{.URL}}"{{with .Height}} height="{{.}}"{{end}}{{with .Width}} width="{{.}}"{{end}}></iframe>
|
||||
{{end}}
|
||||
|
||||
{{define "link"}}<p class="link"><a href="{{.URL}}" target="_blank">{{style .Label}}</a></p>{{end}}
|
||||
|
||||
{{define "html"}}{{.HTML}}{{end}}
|
||||
|
||||
{{define "caption"}}<figcaption>{{style .Text}}</figcaption>{{end}}
|
98
vendor/golang.org/x/tools/cmd/present/templates/article.tmpl
generated
vendored
Normal file
98
vendor/golang.org/x/tools/cmd/present/templates/article.tmpl
generated
vendored
Normal file
@@ -0,0 +1,98 @@
|
||||
{/* This is the article template. It defines how articles are formatted. */}
|
||||
|
||||
{{define "root"}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
<link type="text/css" rel="stylesheet" href="/static/article.css">
|
||||
<meta charset='utf-8'>
|
||||
<script>
|
||||
// Initialize Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(["_setAccount", "UA-11222381-6"]);
|
||||
_gaq.push(["b._setAccount", "UA-49880327-6"]);
|
||||
window.trackPageview = function() {
|
||||
_gaq.push(["_trackPageview", location.pathname+location.hash]);
|
||||
_gaq.push(["b._trackPageview", location.pathname+location.hash]);
|
||||
};
|
||||
window.trackPageview();
|
||||
window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) {
|
||||
_gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
_gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="topbar" class="wide">
|
||||
<div class="container">
|
||||
<div id="heading">{{.Title}}
|
||||
{{with .Subtitle}}{{.}}{{end}}
|
||||
{{if .Authors}}
|
||||
{{range .Authors}}
|
||||
<div class="author">
|
||||
{{range .Elem}}{{elem $.Template .}}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="page" class="wide">
|
||||
<div class="container">
|
||||
{{with .Sections}}
|
||||
<div id="toc" class="no-print">
|
||||
<div id="tochead">Contents</div>
|
||||
{{template "TOC" .}}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{range .Sections}}
|
||||
{{elem $.Template .}}
|
||||
{{end}}{{/* of Section block */}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{if .PlayEnabled}}
|
||||
<script src='/play.js'></script>
|
||||
{{end}}
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
// Load Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
|
||||
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
|
||||
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
|
||||
{{define "TOC"}}
|
||||
<ul class="toc-outer">
|
||||
{{range .}}
|
||||
<li><a href="#TOC_{{.FormattedNumber}}">{{.Title}}</a></li>
|
||||
{{with .Sections}}{{template "TOC-Inner" .}}{{end}}
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
{{define "TOC-Inner"}}
|
||||
<ul class="toc-inner">
|
||||
{{range .}}
|
||||
<li><a href="#TOC_{{.FormattedNumber}}">{{.Title}}</a></li>
|
||||
{{with .Sections}}{{template "TOC-Inner" .}}{{end}}
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
{{define "newline"}}
|
||||
{{/* No automatic line break. Paragraphs are free-form. */}}
|
||||
{{end}}
|
108
vendor/golang.org/x/tools/cmd/present/templates/dir.tmpl
generated
vendored
Normal file
108
vendor/golang.org/x/tools/cmd/present/templates/dir.tmpl
generated
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<title>Talks - The Go Programming Language</title>
|
||||
<link type="text/css" rel="stylesheet" href="/static/dir.css">
|
||||
<script src="/static/dir.js"></script>
|
||||
<script>
|
||||
// Initialize Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(["_setAccount", "UA-11222381-6"]);
|
||||
_gaq.push(["b._setAccount", "UA-49880327-6"]);
|
||||
window.trackPageview = function() {
|
||||
_gaq.push(["_trackPageview", location.pathname+location.hash]);
|
||||
_gaq.push(["b._trackPageview", location.pathname+location.hash]);
|
||||
};
|
||||
window.trackPageview();
|
||||
window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) {
|
||||
_gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
_gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="topbar"><div class="container">
|
||||
|
||||
<form method="GET" action="//golang.org/search">
|
||||
<div id="menu">
|
||||
<a href="http://golang.org/doc/">Documents</a>
|
||||
<a href="http://golang.org/ref">References</a>
|
||||
<a href="http://golang.org/pkg/">Packages</a>
|
||||
<a href="http://golang.org/project/">The Project</a>
|
||||
<a href="http://golang.org/help/">Help</a>
|
||||
<input type="text" id="search" name="q" class="inactive" value="Search">
|
||||
</div>
|
||||
<div id="heading"><a href="/">The Go Programming Language</a></div>
|
||||
</form>
|
||||
|
||||
</div></div>
|
||||
|
||||
<div id="page">
|
||||
|
||||
<h1>Go talks</h1>
|
||||
|
||||
{{with .Path}}<h2>{{.}}</h2>{{end}}
|
||||
|
||||
{{with .Articles}}
|
||||
<h4>Articles:</h4>
|
||||
<dl>
|
||||
{{range .}}
|
||||
<dd><a href="/{{.Path}}">{{.Name}}</a>: {{.Title}}</dd>
|
||||
{{end}}
|
||||
</dl>
|
||||
{{end}}
|
||||
|
||||
{{with .Slides}}
|
||||
<h4>Slide decks:</h4>
|
||||
<dl>
|
||||
{{range .}}
|
||||
<dd><a href="/{{.Path}}">{{.Name}}</a>: {{.Title}}</dd>
|
||||
{{end}}
|
||||
</dl>
|
||||
{{end}}
|
||||
|
||||
{{with .Other}}
|
||||
<h4>Files:</h4>
|
||||
<dl>
|
||||
{{range .}}
|
||||
<dd><a href="/{{.Path}}">{{.Name}}</a></dd>
|
||||
{{end}}
|
||||
</dl>
|
||||
{{end}}
|
||||
|
||||
{{with .Dirs}}
|
||||
<h4>Sub-directories:</h4>
|
||||
<dl>
|
||||
{{range .}}
|
||||
<dd><a href="/{{.Path}}">{{.Name}}</a></dd>
|
||||
{{end}}
|
||||
</dl>
|
||||
{{end}}
|
||||
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
|
||||
the content of this page is licensed under the
|
||||
Creative Commons Attribution 3.0 License,
|
||||
and code is licensed under a <a href="http://golang.org/LICENSE">BSD license</a>.<br>
|
||||
<a href="http://golang.org/doc/tos.html">Terms of Service</a> |
|
||||
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
// Load Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
|
||||
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
|
||||
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
107
vendor/golang.org/x/tools/cmd/present/templates/slides.tmpl
generated
vendored
Normal file
107
vendor/golang.org/x/tools/cmd/present/templates/slides.tmpl
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
{/* This is the slide template. It defines how presentations are formatted. */}
|
||||
|
||||
{{define "root"}}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{.Title}}</title>
|
||||
<meta charset='utf-8'>
|
||||
<script>
|
||||
var notesEnabled = {{.NotesEnabled}};
|
||||
</script>
|
||||
<script src='/static/slides.js'></script>
|
||||
|
||||
{{if .NotesEnabled}}
|
||||
<script>
|
||||
var sections = {{.Sections}};
|
||||
var titleNotes = {{.TitleNotes}}
|
||||
</script>
|
||||
<script src='/static/notes.js'></script>
|
||||
{{end}}
|
||||
|
||||
<script>
|
||||
// Initialize Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(["_setAccount", "UA-11222381-6"]);
|
||||
_gaq.push(["b._setAccount", "UA-49880327-6"]);
|
||||
window.trackPageview = function() {
|
||||
_gaq.push(["_trackPageview", location.pathname+location.hash]);
|
||||
_gaq.push(["b._trackPageview", location.pathname+location.hash]);
|
||||
};
|
||||
window.trackPageview();
|
||||
window.trackEvent = function(category, action, opt_label, opt_value, opt_noninteraction) {
|
||||
_gaq.push(["_trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
_gaq.push(["b._trackEvent", category, action, opt_label, opt_value, opt_noninteraction]);
|
||||
};
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body style='display: none'>
|
||||
|
||||
<section class='slides layout-widescreen'>
|
||||
|
||||
<article>
|
||||
<h1>{{.Title}}</h1>
|
||||
{{with .Subtitle}}<h3>{{.}}</h3>{{end}}
|
||||
{{if not .Time.IsZero}}<h3>{{.Time.Format "2 January 2006"}}</h3>{{end}}
|
||||
{{range .Authors}}
|
||||
<div class="presenter">
|
||||
{{range .TextElem}}{{elem $.Template .}}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</article>
|
||||
|
||||
{{range $i, $s := .Sections}}
|
||||
<!-- start of slide {{$s.Number}} -->
|
||||
<article {{$s.HTMLAttributes}}>
|
||||
{{if $s.Elem}}
|
||||
<h3>{{$s.Title}}</h3>
|
||||
{{range $s.Elem}}{{elem $.Template .}}{{end}}
|
||||
{{else}}
|
||||
<h2>{{$s.Title}}</h2>
|
||||
{{end}}
|
||||
<span class="pagenumber">{{pagenum $s 1}}</span>
|
||||
</article>
|
||||
<!-- end of slide {{$s.Number}} -->
|
||||
{{end}}{{/* of Slide block */}}
|
||||
|
||||
<article>
|
||||
<h3>Thank you</h3>
|
||||
{{range .Authors}}
|
||||
<div class="presenter">
|
||||
{{range .Elem}}{{elem $.Template .}}{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
</article>
|
||||
|
||||
</section>
|
||||
|
||||
<div id="help">
|
||||
Use the left and right arrow keys or click the left and right
|
||||
edges of the page to navigate between slides.<br>
|
||||
(Press 'H' or navigate to hide this message.)
|
||||
</div>
|
||||
|
||||
{{if .PlayEnabled}}
|
||||
<script src='/play.js'></script>
|
||||
{{end}}
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
// Load Google Analytics tracking code on production site only.
|
||||
if (window["location"] && window["location"]["hostname"] == "talks.golang.org") {
|
||||
var ga = document.createElement("script"); ga.type = "text/javascript"; ga.async = true;
|
||||
ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
|
||||
var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ga, s);
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
|
||||
{{define "newline"}}
|
||||
<br>
|
||||
{{end}}
|
Reference in New Issue
Block a user