<p>The official blog of the Go project, featuring news and in-depth articles by
the Go team and guests.</p>
-<h3>Codewalks</h3>
+<h4>Codewalks</h4>
<p>
Guided tours of Go programs.
</p>
<li><a href="/doc/articles/wiki/">Writing Web Applications</a> - building a simple web application.</li>
</ul>
-<h3>Language</h3>
-
+<h4>Language</h4>
<ul>
<li><a href="http://blog.golang.org/2010/04/json-rpc-tale-of-interfaces.html">JSON-RPC: a tale of interfaces</a></li>
<li><a href="http://blog.golang.org/2010/07/gos-declaration-syntax.html">Go's Declaration Syntax</a></li>
<li><a href="/doc/articles/error_handling.html">Error Handling and Go</a></li>
</ul>
-<h3>Packages</h3>
-
+<h4>Packages</h4>
<ul>
<li><a href="http://blog.golang.org/2011/01/json-and-go.html">JSON and Go</a> - using the <a href="/pkg/encoding/json/">json</a> package.</li>
<li><a href="http://blog.golang.org/2011/03/gobs-of-data.html">Gobs of data</a> - the design and use of the <a href="/pkg/encoding/gob/">gob</a> package.</li>
<li><a href="http://blog.golang.org/2011/09/go-imagedraw-package.html">The Go image/draw package</a> - the fundamentals of the <a href="/pkg/image/draw/">image/draw</a> package.</li>
</ul>
-<h3>Tools</h3>
-
+<h4>Tools</h4>
<ul>
<li><a href="/doc/articles/go_command.html">About the Go command</a> - why we wrote it, what it is, what it's not, and how to use it.</li>
<li><a href="/doc/articles/c_go_cgo.html">C? Go? Cgo!</a> - linking against C code with <a href="/cmd/cgo/">cgo</a>.</li>
See the <a href="http://wh3rd.net/practical-go/">presentation slides</a>.
</p>
-<h3 id="talks_more">More</h3>
+<h4 id="talks_more">More</h4>
<p>
See the <a href="http://code.google.com/p/go-wiki/wiki/GoTalks">GoTalks
page</a> at the <a href="http://code.google.com/p/go-wiki/wiki">Go Wiki</a> for
Using GDB to debug Go programs.
</p>
-<h3 id="articles">Articles</h2>
+<h4 id="articles">Articles</h4>
<ul>
<li><a href="/doc/articles/c_go_cgo.html">C? Go? Cgo!</a> - linking against C code with <a href="/cmd/cgo/">cgo</a>.</li>
<div class="left">
<div id="learn">
+<img class="icon share" src="/doc/share.png">
<div class="rootHeading">Try Go</div>
<div class="input">
-<textarea spellcheck="false" id="code">// You can edit this code!
+<textarea spellcheck="false" class="code">// You can edit this code!
// Click here and start typing.
package main
fmt.Println("Hello, 世界")
}</textarea>
</div>
-<div class="output" id="output">
+<div class="output">
<pre>
Hello, 世界
</pre>
</div>
<div class="buttons">
-<a id="run" href="#">Run</a>
-<a id="share" href="#">Share</a>
+<a class="run" href="#">Run</a>
+<a class="share" href="#">Share</a>
</div>
</div>
// Set up playground.
playground({
"simple": true,
- "codeEl": "#code",
- "outputEl": "#output",
- "runEl": "#run",
- "shareEl": "#share",
+ "codeEl": "#learn .code",
+ "outputEl": "#learn .output",
+ "runEl": "#learn .run",
+ "shareEl": "#learn .share",
"shareRedirect": "http://play.golang.org/p/"
});
}
pre .highlight-comment,
pre .selection-highlight,
pre .selection-highlight-comment {
- background: #FFFF00;
+ background: #FFFF00;
}
pre .selection,
pre .selection-comment {
- background: #FF9632;
+ background: #FF9632;
}
pre .ln {
color: #999;
color: #375EAB;
text-decoration: none;
}
+a:hover {
+ text-decoration: underline;
+}
p,
pre,
ul,
margin: 0;
}
-h1 a,
-h2 a,
-h3 a,
-h4 a {
- text-decoration: underline;
-}
-
dl {
margin: 20px;
}
margin-top: 5px;
}
+div#learn .icon {
+ float: right;
+ cursor: pointer;
+}
div#learn pre,
div#learn textarea {
padding: 0;
}
div#blog .title,
div#video .title {
- color: #222;
- text-decoration: none;
display: block;
font-size: 20px;
}