2009-10-22 01:13:36 -06:00
|
|
|
<!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">
|
2009-10-28 13:52:52 -06:00
|
|
|
<title>{Title|html}</title>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="/doc/style.css">
|
|
|
|
<script type="text/javascript" src="/doc/godocs.js"></script>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
2009-11-03 20:59:45 -07:00
|
|
|
<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>
|
|
|
|
|
2009-10-22 01:13:36 -06:00
|
|
|
<div id="topnav">
|
2009-11-03 20:59:45 -07:00
|
|
|
<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>
|
2009-11-05 13:18:54 -07:00
|
|
|
<td>
|
|
|
|
<div id="headerDocSetTitle">The Go Programming Language</div>
|
|
|
|
</td>
|
2009-11-03 20:59:45 -07:00
|
|
|
<td>
|
|
|
|
<!-- <table>
|
|
|
|
<tr>
|
|
|
|
<td>
|
2009-11-05 13:18:54 -07:00
|
|
|
<! The input box is outside of the form because we want to add
|
2009-11-03 20:59:45 -07:00
|
|
|
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. “pem” or “xml”)</span>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table> -->
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2009-10-22 01:13:36 -06:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="linkList">
|
|
|
|
<ul>
|
2009-11-09 17:19:38 -07:00
|
|
|
<li class="navhead"><a href="/">Home</a></li>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
|
|
|
<li class="blank"> </li>
|
|
|
|
<li class="navhead">Documents</li>
|
2009-11-09 17:19:38 -07:00
|
|
|
<li><a href="/doc/go_tutorial.html">Tutorial</a></li>
|
|
|
|
<li><a href="/doc/effective_go.html">Effective Go</a></li>
|
|
|
|
<li><a href="/doc/go_faq.html">FAQ</a></li>
|
|
|
|
<li><a href="/doc/go_lang_faq.html">Language Design FAQ</a></li>
|
2010-03-03 18:56:08 -07:00
|
|
|
<li><a href="/doc/go_programming_faq.html">Programming FAQ</a></li>
|
2010-01-13 17:26:22 -07:00
|
|
|
<li><a href="http://www.youtube.com/watch?v=rKnDgT73v8s">Tech talk (1 hour)</a> (<a href="/doc/talks/go_talk-20091030.pdf">PDF</a>)</li>
|
2009-11-09 17:19:38 -07:00
|
|
|
<li><a href="/doc/go_spec.html">Language Specification</a></li>
|
|
|
|
<li><a href="/doc/go_mem.html">Memory Model</a></li>
|
|
|
|
<li><a href="/doc/go_for_cpp_programmers.html">Go for C++ Programmers</a></li>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
|
|
|
<li class="blank"> </li>
|
|
|
|
<li class="navhead">Programming</li>
|
2010-01-07 19:23:41 -07:00
|
|
|
<li><a href="/doc/install.html">How to install Go</a></li>
|
|
|
|
<li><a href="/doc/code.html">How to write code</a></li>
|
2009-11-09 17:19:38 -07:00
|
|
|
<li><a href="/cmd">Command documentation</a></li>
|
|
|
|
<li><a href="/pkg">Package documentation</a></li>
|
2010-02-16 12:20:55 -07:00
|
|
|
{.repeated section PkgRoots}
|
|
|
|
<li><a href="/pkg/{@|html-esc}">Package documentation for {@|html-esc}</a></li>
|
|
|
|
{.end}
|
2009-11-09 17:19:38 -07:00
|
|
|
<li><a href="/src">Source files</a></li>
|
2010-01-07 19:23:41 -07:00
|
|
|
<li><a href="/doc/devel/">The Go project</a></li>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
2009-11-08 10:50:16 -07:00
|
|
|
<li class="blank"> </li>
|
2010-03-19 18:42:57 -06:00
|
|
|
<li class="navhead">Help & Community</li>
|
|
|
|
<li><a href="http://blog.golang.org/">Go Blog</a></li>
|
2009-11-09 17:19:38 -07:00
|
|
|
<li><a href="http://groups.google.com/group/golang-nuts">Go Nuts mailing list</a></li>
|
2010-03-19 18:42:57 -06:00
|
|
|
<li>#go-nuts on irc.freenode.net</li>
|
2009-11-10 10:37:03 -07:00
|
|
|
<li><a href="http://code.google.com/p/go/issues/list">Issue tracker</a></li>
|
2010-03-19 18:42:57 -06:00
|
|
|
<li><a href="http://code.google.com/p/go/wiki/WikiIndex">Go Wiki</a></li>
|
2009-11-08 10:50:16 -07:00
|
|
|
|
2010-03-19 18:42:57 -06:00
|
|
|
|
|
|
|
<li class="blank"> </li>
|
2009-11-07 17:46:49 -07:00
|
|
|
<li class="blank"> </li>
|
|
|
|
<li class="navhead">Go code search</li>
|
|
|
|
<form method="GET" action="/search" class="search">
|
2010-01-13 16:18:56 -07:00
|
|
|
<input type="search" name="q" value="{Query|html-esc}" size="25" style="width:80%; max-width:200px" />
|
2009-10-27 11:34:31 -06:00
|
|
|
<input type="submit" value="Go" />
|
2009-11-08 10:50:16 -07:00
|
|
|
</form>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
|
|
|
<li class="blank"> </li>
|
|
|
|
<li class="navhead">Last update</li>
|
2009-11-08 17:47:32 -07:00
|
|
|
<li>{Timestamp|time}</li>
|
2010-03-19 16:20:20 -06:00
|
|
|
<li>Build version {Version|html}</li>
|
2009-10-22 01:13:36 -06:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content">
|
2010-02-18 18:40:50 -07:00
|
|
|
<!-- Menu is HTML-escaped elsewhere -->
|
|
|
|
{.section Menu}
|
|
|
|
<div id="menu">
|
|
|
|
{@}
|
|
|
|
</div>
|
|
|
|
{.end}
|
|
|
|
|
2009-11-03 20:59:45 -07:00
|
|
|
<h1 id="generatedHeader">{Title|html}</h1>
|
2009-10-22 01:13:36 -06:00
|
|
|
|
|
|
|
<!-- The Table of Contents is automatically inserted in this <div>.
|
|
|
|
Do not delete this <div>. -->
|
|
|
|
<div id="nav"></div>
|
|
|
|
|
2009-10-28 13:52:52 -06:00
|
|
|
<!-- Content is HTML-escaped elsewhere -->
|
2009-10-27 11:34:31 -06:00
|
|
|
{Content}
|
2009-10-22 01:13:36 -06:00
|
|
|
</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>
|