2010-09-15 22:01:02 -06:00
|
|
|
<!DOCTYPE html>
|
2009-10-22 01:13:36 -06:00
|
|
|
<html>
|
|
|
|
<head>
|
2012-02-13 03:22:36 -07:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2012-03-21 12:29:30 -06:00
|
|
|
{{with .Tabtitle}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<title>{{html .}} - The Go Programming Language</title>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{else}}
|
2010-10-25 19:11:00 -06:00
|
|
|
<title>The Go Programming Language</title>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2012-02-13 03:22:36 -07:00
|
|
|
<link type="text/css" rel="stylesheet" href="/doc/style.css">
|
2013-06-06 18:46:56 -06:00
|
|
|
<script type="text/javascript" src="/doc/jquery.js"></script>
|
2012-10-09 18:17:47 -06:00
|
|
|
{{if .Playground}}
|
|
|
|
<script type="text/javascript" src="/doc/play/playground.js"></script>
|
|
|
|
{{end}}
|
2010-09-15 22:01:02 -06:00
|
|
|
<script type="text/javascript" src="/doc/godocs.js"></script>
|
2011-12-12 16:01:06 -07:00
|
|
|
{{if .SearchBox}}
|
|
|
|
<link rel="search" type="application/opensearchdescription+xml" title="godoc" href="/opensearch.xml" />
|
|
|
|
{{end}}
|
2009-10-22 01:13:36 -06:00
|
|
|
</head>
|
|
|
|
<body>
|
2010-02-18 18:40:50 -07:00
|
|
|
|
2012-10-09 18:17:47 -06:00
|
|
|
<div id="topbar"{{if .Title}} class="wide"{{end}}><div class="container">
|
2009-10-22 01:13:36 -06:00
|
|
|
|
2012-02-13 03:22:36 -07:00
|
|
|
<form method="GET" action="/search">
|
|
|
|
<div id="menu">
|
2012-03-04 16:34:22 -07:00
|
|
|
<a href="/doc/">Documents</a>
|
|
|
|
<a href="/ref/">References</a>
|
|
|
|
<a href="/pkg/">Packages</a>
|
|
|
|
<a href="/project/">The Project</a>
|
|
|
|
<a href="/help/">Help</a>
|
2012-10-09 18:17:47 -06:00
|
|
|
{{if .Playground}}
|
|
|
|
<a id="playgroundButton" href="http://play.golang.org/" title="Show Go Playground">Play</a>
|
|
|
|
{{end}}
|
2012-10-03 23:31:25 -06:00
|
|
|
<input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
|
2012-02-13 03:22:36 -07:00
|
|
|
</div>
|
2012-03-12 17:17:10 -06:00
|
|
|
<div id="heading"><a href="/">The Go Programming Language</a></div>
|
2012-02-13 03:22:36 -07:00
|
|
|
</form>
|
|
|
|
|
|
|
|
</div></div>
|
|
|
|
|
2012-10-09 18:17:47 -06:00
|
|
|
{{if .Playground}}
|
|
|
|
<div id="playground" class="play">
|
|
|
|
<div class="input"><textarea class="code">package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
fmt.Println("Hello, 世界")
|
|
|
|
}</textarea></div>
|
|
|
|
<div class="output"></div>
|
|
|
|
<div class="buttons">
|
|
|
|
<a class="run" title="Run this code [shift-enter]">Run</a>
|
|
|
|
<a class="fmt" title="Format this code">Format</a>
|
|
|
|
<a class="share" title="Share this code">Share</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2012-03-12 17:17:10 -06:00
|
|
|
<div id="page"{{if .Title}} class="wide"{{end}}>
|
2012-10-09 18:17:47 -06:00
|
|
|
<div class="container">
|
2012-02-13 03:22:36 -07:00
|
|
|
|
|
|
|
{{with .Title}}
|
|
|
|
<div id="plusone"><g:plusone size="small" annotation="none"></g:plusone></div>
|
|
|
|
<h1>{{html .}}</h1>
|
|
|
|
{{end}}
|
|
|
|
{{with .Subtitle}}
|
|
|
|
<h2>{{html .}}</h2>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{/* The Table of Contents is automatically inserted in this <div>.
|
|
|
|
Do not delete this <div>. */}}
|
|
|
|
<div id="nav"></div>
|
|
|
|
|
2012-03-30 11:42:56 -06:00
|
|
|
{{/* Body is HTML-escaped elsewhere */}}
|
|
|
|
{{printf "%s" .Body}}
|
2012-02-13 03:22:36 -07:00
|
|
|
|
2012-03-26 10:12:15 -06:00
|
|
|
<div id="footer">
|
2012-03-26 16:27:43 -06:00
|
|
|
Build version {{html .Version}}.<br>
|
2012-03-26 20:35:01 -06:00
|
|
|
Except as <a href="http://code.google.com/policies.html#restrictions">noted</a>,
|
2012-03-26 22:09:13 -06:00
|
|
|
the content of this page is licensed under the
|
|
|
|
Creative Commons Attribution 3.0 License,
|
|
|
|
and code is licensed under a <a href="/LICENSE">BSD license</a>.<br>
|
|
|
|
<a href="/doc/tos.html">Terms of Service</a> |
|
2012-07-11 10:41:08 -06:00
|
|
|
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
|
2012-02-13 03:22:36 -07:00
|
|
|
</div>
|
|
|
|
|
2012-10-09 18:17:47 -06:00
|
|
|
</div><!-- .container -->
|
|
|
|
</div><!-- #page -->
|
|
|
|
|
2009-10-22 01:13:36 -06:00
|
|
|
</body>
|
2012-02-13 03:22:36 -07:00
|
|
|
<script type="text/javascript">
|
|
|
|
(function() {
|
|
|
|
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
|
|
|
po.src = 'https://apis.google.com/js/plusone.js';
|
|
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
|
|
|
})();
|
|
|
|
</script>
|
2009-10-22 01:13:36 -06:00
|
|
|
</html>
|
2012-02-13 03:22:36 -07:00
|
|
|
|