2013-07-31 19:01:10 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
{{with .Tabtitle}}
|
|
|
|
<title>{{html .}} - The Go Programming Language</title>
|
|
|
|
{{else}}
|
|
|
|
<title>The Go Programming Language</title>
|
|
|
|
{{end}}
|
2013-08-01 01:36:56 -06:00
|
|
|
<link type="text/css" rel="stylesheet" href="/lib/godoc/style.css">
|
2013-07-31 19:01:10 -06:00
|
|
|
{{if .SearchBox}}
|
|
|
|
<link rel="search" type="application/opensearchdescription+xml" title="godoc" href="/opensearch.xml" />
|
|
|
|
{{end}}
|
|
|
|
<script type="text/javascript">window.initFuncs = [];</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div id="topbar"{{if .Title}} class="wide"{{end}}><div class="container">
|
|
|
|
|
|
|
|
<form method="GET" action="/search">
|
|
|
|
<div id="menu">
|
|
|
|
<a href="/doc/">Documents</a>
|
|
|
|
<a href="/pkg/">Packages</a>
|
|
|
|
<a href="/project/">The Project</a>
|
|
|
|
<a href="/help/">Help</a>
|
2013-09-17 23:12:51 -06:00
|
|
|
<a href="/blog/">Blog</a>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{if .Playground}}
|
|
|
|
<a id="playgroundButton" href="http://play.golang.org/" title="Show Go Playground">Play</a>
|
|
|
|
{{end}}
|
|
|
|
<input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
|
|
|
|
</div>
|
|
|
|
<div id="heading"><a href="/">The Go Programming Language</a></div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div></div>
|
|
|
|
|
|
|
|
{{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}}
|
|
|
|
|
|
|
|
<div id="page"{{if .Title}} class="wide"{{end}}>
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
{{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>
|
|
|
|
|
|
|
|
{{/* Body is HTML-escaped elsewhere */}}
|
|
|
|
{{printf "%s" .Body}}
|
|
|
|
|
|
|
|
<div id="footer">
|
|
|
|
Build version {{html .Version}}.<br>
|
2014-03-12 17:50:06 -06:00
|
|
|
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
|
2013-07-31 19:01:10 -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> |
|
|
|
|
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div><!-- .container -->
|
|
|
|
</div><!-- #page -->
|
|
|
|
|
2013-08-01 01:36:56 -06:00
|
|
|
<script type="text/javascript" src="/lib/godoc/jquery.js"></script>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{if .Playground}}
|
2013-07-31 23:08:46 -06:00
|
|
|
<script type="text/javascript" src="/lib/godoc/playground.js"></script>
|
2013-07-31 19:01:10 -06:00
|
|
|
{{end}}
|
2013-07-31 23:08:46 -06:00
|
|
|
<script type="text/javascript" src="/lib/godoc/godocs.js"></script>
|
2013-07-31 19:01:10 -06:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|