1
0
mirror of https://github.com/golang/go synced 2024-11-22 06:04:39 -07:00
go/lib/godoc/godoc.html
Robert Griesemer 202ede1240 - properly align package synopses
(this was surprisingly hard to get right in HTML)
- show modification times in source directory listings
- various tweaks

R=rsc
http://go/go-review/1024024
2009-11-08 16:47:32 -08:00

139 lines
5.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>{Title|html}</title>
<link rel="stylesheet" type="text/css" href="/doc/style.css">
<script type="text/javascript" src="/doc/godocs.js"></script>
</head>
<body>
<script>
// Catch 'enter' key down events and trigger the search form submission.
function codesearchKeyDown(event) {.meta-left}
if (event.which == 13) {.meta-left}
var form = document.getElementById('codesearch');
var query = document.getElementById('codesearchQuery');
form.q.value = "lang:go package:go.googlecode.com " + query.value;
document.getElementById('codesearch').submit();
{.meta-right}
return true;
{.meta-right}
// Capture the submission event and construct the query parameter.
function codeSearchSubmit() {.meta-left}
var query = document.getElementById('codesearchQuery');
var form = document.getElementById('codesearch');
form.q.value = "lang:go package:go.googlecode.com " + query.value;
return true;
{.meta-right}
</script>
<div id="topnav">
<table summary="">
<tr>
<td id="headerImage">
<a href="/"><img src="/doc/logo-153x55.png" height="55" width="153" alt="Go Home Page" style="border:0" /></a>
</td>
<td>
<div id="headerDocSetTitle">The Go Programming Language</div>
</td>
<td>
<!-- <table>
<tr>
<td>
<! The input box is outside of the form because we want to add
a couple of restricts to the query before submitting. If we just
add the restricts to the text box before submitting, then they
appear in the box when the user presses 'back'. Thus we use a
hidden field in the form. However, there's no way to stop the
non-hidden text box from also submitting a value unless we move
it outside of the form
<input type="search" id="codesearchQuery" value="" size="30" onkeydown="return codesearchKeyDown(event);"/>
<form method="GET" action="http://www.google.com/codesearch" id="codesearch" class="search" onsubmit="return codeSearchSubmit();" style="display:inline;">
<input type="hidden" name="q" value=""/>
<input type="submit" value="Code search" />
<span style="color: red">(TODO: remove for now?)</span>
</form>
</td>
</tr>
<tr>
<td>
<span style="color: gray;">(e.g. &ldquo;pem&rdquo; or &ldquo;xml&rdquo;)</span>
</td>
</tr>
</table> -->
</td>
</tr>
</table>
</div>
<div id="linkList">
<ul>
<li class="navhead"><a href="/" class="noline">Home</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">Documents</li>
<li><a href="/doc/go_tutorial.html" class="noline">Tutorial</a></li>
<li><a href="/doc/effective_go.html" class="noline">Effective Go</a></li>
<li><a href="/doc/go_faq.html" class="noline">FAQ</a></li>
<li><a href="/doc/go_lang_faq.html" class="noline">Language Design FAQ</a></li>
<li><a href="/XXX" class="noline">Tech talk (1 hour)</a></li>
<li><a href="/doc/go_spec.html" class="noline">Language Specification</a></li>
<li><a href="/doc/go_mem.html" class="noline">Memory Model</a></li>
<li><a href="/doc/go_for_cpp_programmers.html" class="noline">Go for C++ Programmers</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">How To</li>
<li><a href="/doc/install.html" class="noline">Install Go</a></li>
<li><a href="/doc/contribute.html" class="noline">Contribute code</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">Programming</li>
<li><a href="/cmd" class="noline">Command documentation</a></li>
<li><a href="/pkg" class="noline">Package documentation</a></li>
<li><a href="/src" class="noline">Source files</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">Help</li>
<li><a href="http://code.google.com/p/go/issues/list" class="noline">Issue tracker</a></li>
<li><a href="http://groups.google.com/group/golang-nuts" class="noline">Go Nuts mailing list</a></li>
<li class="blank">&nbsp;</li>
<li class="navhead">Go code search</li>
<form method="GET" action="/search" class="search">
<input type="search" name="q" value="{Query|html}" size="25" />
<input type="submit" value="Go" />
</form>
<li class="blank">&nbsp;</li>
<li class="navhead">Last update</li>
<li>{Timestamp|time}</li>
</ul>
</div>
<div id="content">
<h1 id="generatedHeader">{Title|html}</h1>
<!-- The Table of Contents is automatically inserted in this <div>.
Do not delete this <div>. -->
<div id="nav"></div>
<!-- Content is HTML-escaped elsewhere -->
{Content}
</div>
<div id="footer">
<p>Except as noted, this content is
licensed under <a href="http://creativecommons.org/licenses/by/3.0/">
Creative Commons Attribution 3.0</a>.
</div>
</body>
</html>