1
0
mirror of https://github.com/golang/go synced 2024-11-21 20:04:44 -07:00

doc: update front page and go_learning.html

This is a stop-gap change to give more current information visibility
before a more thorough reorganization.

R=r, rsc, gri
CC=golang-dev
https://golang.org/cl/1902042
This commit is contained in:
Andrew Gerrand 2010-07-30 10:36:13 +10:00
parent c21e2f3925
commit bab711b184
9 changed files with 107 additions and 59 deletions

View File

@ -111,7 +111,15 @@ Features and ideas being developed or discussed by the Go team.
A summarization of the changes between tagged releases of Go. A summarization of the changes between tagged releases of Go.
</p> </p>
<h2 id="videos">Videos</h2> <h2 id="videos_talks">Videos and Talks</h2>
<h3 id="go_programming"><a href="http://www.youtube.com/watch?v=jgVhBThJdXc">Go Programming</a></h3>
<p>
A presentation delivered by Rob Pike and Russ Cox at Google I/O 2010. It
illustrates how programming in Go differs from other languages through a set of
examples demonstrating features particular to Go. These include concurrency,
embedded types, methods on any type, and program construction using interfaces.
</p>
<h3 id="techtalk"><a href="http://www.youtube.com/watch?v=rKnDgT73v8s">The Go Tech Talk</a></h3> <h3 id="techtalk"><a href="http://www.youtube.com/watch?v=rKnDgT73v8s">The Go Tech Talk</a></h3>
<p> <p>
@ -120,15 +128,33 @@ The language's first public introduction. (See the <a href="talks/go_talk-200910
but it's still a good introduction. but it's still a good introduction.
</p> </p>
<h3 id="gocoding_channel"><a href="http://www.youtube.com/gocoding">gocoding YouTube Channel</a></h3> <h3 id="gocoding_channel"><a href="http://www.youtube.com/gocoding">gocoding YouTube Channel</a></h3>
<p> <p>
A YouTube channel that includes screencasts and other Go-related videos: A YouTube channel that includes screencasts and other Go-related videos:
</p> </p>
<ul> <ul>
<li><a href="http://www.youtube.com/gocoding#p/u/0/jDWBJOXs_iI">Screencast: Writing Go Packages</a> - writing, building, and distributing Go packages.</li> <li><a href="http://www.youtube.com/gocoding#p/u/0/jDWBJOXs_iI">Screencast: Writing Go Packages</a> - writing, building, and distributing Go packages.</li>
<li><a href="http://www.youtube.com/watch?v=3brH0zOqm0w">Screencast: Testing Go Packages</a> - writing unit tests and benchmarking Go packages.</li>
</ul> </ul>
<h3 id="oscon_go"><a href="http://www.oscon.com/oscon2010/public/schedule/detail/14760">Another Go at Language Design</a></h3>
<p>
A tour, with some background, of the major features of Go, intended for
an audience new to the language. The talk was presented at OSCON 2010.
See the <a href="http://assets.en.oreilly.com/1/event/45/Another%20Go%20at%20Language%20Design%20Presentation.pdf">presentation slides</a>.
</p>
<h3 id="oscon_go"><a href="http://www.oscon.com/oscon2010/public/schedule/detail/15464">Go Emerging Languages Conference Talk</a></h3>
<p>
Rob Pike's Emerging Languages Conference presentation delivered in July 2010. See the <a href="http://assets.en.oreilly.com/1/event/45/Go%20Presentation.pdf">presentation slides</a>. Abstract:
</p>
<p><i>
Gos approach to concurrency differs from that of many languages, even those
(such as Erlang) that make concurrency central, yet it has deep roots. The path
from Hoares 1978 paper to Go provides insight into how and why Go works as it
does.
</i></p>
<h3 id="promo_video"><a href="http://www.youtube.com/watch?v=wwoWei-GAPo">The Go Promo Video</a></h3> <h3 id="promo_video"><a href="http://www.youtube.com/watch?v=wwoWei-GAPo">The Go Promo Video</a></h3>
<p> <p>
A short promotional video featuring Russ Cox demonstrating Go's fast compiler. A short promotional video featuring Russ Cox demonstrating Go's fast compiler.

View File

@ -23,6 +23,7 @@ function loadFeed() {
} }
container.innerHTML = ""; container.innerHTML = "";
var entries = result.feed.entries; var entries = result.feed.entries;
console.log(entries);
for (var i=0; i<entries.length; i++) { for (var i=0; i<entries.length; i++) {
var a = document.createElement("a"); var a = document.createElement("a");
a.setAttribute("href", entries[i].link); a.setAttribute("href", entries[i].link);
@ -36,41 +37,6 @@ google.setOnLoadCallback(loadFeed);
</script> </script>
<!-- end blog post widget JS/styles --> <!-- end blog post widget JS/styles -->
<div id="gettingStarted">
<h1>Getting started</h1>
<ol>
<li>
<span><a href="/doc/install.html">Install Go</a>.</span>
</li>
<li>
<span>Read the <a href="/doc/go_tutorial.html">tutorial</a>.</span>
</li>
<li>
<span>Learn the <a href="/pkg">libraries</a>.</span>
</li>
</ol>
<h1>Slow compiles?<br>Watch this</h1>
<table width="100%">
<tr>
<td align=center width="100%">
<a href="http://www.youtube.com/watch?v=wwoWei-GAPo"><img src="/doc/video-snap.jpg"></a>
</td>
</tr>
</table>
</div>
<div id="blog">
<h1>From the <a href="http://blog.golang.org">Go Blog</a>:</h1>
<div id="blogFeed">Loading...</div>
</div>
<div id="frontpage">
<table style="padding-top: 1em; padding-bottom: 2em;"> <table style="padding-top: 1em; padding-bottom: 2em;">
<tr> <tr>
<td> <td>
@ -82,6 +48,33 @@ google.setOnLoadCallback(loadFeed);
</tr> </tr>
</table> </table>
<div id="fp-videos">
<h1>Go videos</h1>
<div class="video">
<a href="http://www.youtube.com/watch?v=jgVhBThJdXc"><img src="/doc/video-snap-io.jpg"></a>
<div class="title">"Go Programming"</div>
<div class="subtitle">Google I/O Tech Talk</div>
</div>
<div class="video">
<a href="http://www.youtube.com/watch?v=wwoWei-GAPo"><img src="/doc/video-snap-fastcompiles.jpg"></a>
<div class="title">"Fast Compiles"</div>
<div class="subtitle">Go Promotional Video</div>
</div>
<div class="video">
<a href="http://www.youtube.com/gocoding"><img src="/doc/video-snap-gocoding.jpg"></a>
<div class="title">Go Youtube Channel</div>
<div class="subtitle">Screencasts and more</div>
</div>
<a class="more" href="/doc/go_learning.html#videos_talks">More videos and talks.</a>
</div>
<div id="frontpage">
<div id="blog">
<h1>From the <a href="http://blog.golang.org">Go Blog</a>:</h1>
<div id="blogFeed">Loading...</div>
</div>
<p style="font-size: 1.5em; font-weight: bold;">Go is &hellip;</p> <p style="font-size: 1.5em; font-weight: bold;">Go is &hellip;</p>
<h3>&hellip; simple</h3> <h3>&hellip; simple</h3>
@ -94,25 +87,27 @@ func main() {
fmt.Printf("Hello, 世界\n") fmt.Printf("Hello, 世界\n")
}</pre> }</pre>
<p>Go has a small, simple feature set, making it easy to learn.</p>
<h3>&hellip; fast</h3> <h3>&hellip; fast</h3>
<p> <p>
Go compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code. Go compilers produce fast code fast. Typical builds take a fraction of a second yet the resulting programs run nearly as quickly as comparable C or C++ code.
</p> </p>
<h3>&hellip; concurrent</h3>
<p>
Go promotes writing systems and servers as sets of lightweight communicating
processes, called goroutines, with strong support from the language. Run
thousands of goroutines if you want&mdash;and say good-bye to stack overflows.
</p>
<h3>&hellip; safe</h3> <h3>&hellip; safe</h3>
<p>Go is type safe and memory safe. Go has pointers but no pointer arithmetic. <p>Go is type safe and memory safe. Go has pointers but no pointer arithmetic.
For random access, use slices, which know their limits.</p> For random access, use slices, which know their limits.</p>
<h3>&hellip; concurrent</h3>
<p>
Go promotes writing systems and servers as sets of lightweight
communicating processes, called goroutines, with strong support from the language.
Run thousands of goroutines if you want&mdash;and say good-bye to stack overflows.
</p>
<h3>&hellip; fun</h3> <h3>&hellip; fun</h3>
<p> <p>

View File

@ -239,9 +239,9 @@ span.subtitle {
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
/* Styles for the frontpage */ /* Styles for the frontpage */
#gettingStarted, #blog { #fp-videos {
margin-top: 1.5em; margin-top: 1.5em;
margin-left: 1.75em; margin-left: 1em;
margin-right: 0em; margin-right: 0em;
float: right; float: right;
clear: right; clear: right;
@ -249,28 +249,29 @@ span.subtitle {
padding-left: 1em; padding-left: 1em;
padding-right: 1em; padding-right: 1em;
padding-bottom: 0.75em; padding-bottom: 0.75em;
border: 2px solid #ba9836; border: 1px solid #ba9836;
width: 160px; width: 160px;
} }
#blog { margin-bottom: 1.5em; } #blog { margin-bottom: 1.5em; }
#blog h1 { font-size: 1.2em; } #blog h1 { font-size: 1.2em; padding-top: 0.7em; }
#blog #blogFeed a { font-size: 1.1em; display: block; margin-top: 1em; } #blog #blogFeed a { display: block; margin-top: 1em; }
#gettingStarted h1 { #fp-videos h1 {
padding-top: 0.3em; padding-top: 0.5em;
margin-bottom: 0.2em; margin-bottom: 0.2em;
font-size: 1.5em; font-size: 1.2em;
} }
#gettingStarted ol { #fp-videos a img {
padding-left: 2em;
}
#gettingStarted a img {
border: 1px solid blue; border: 1px solid blue;
} }
#fp-videos a.more {
text-align: center;
display: block;
}
#frontpage { #frontpage {
width: 100%; width: 100%;
} }
@ -280,3 +281,29 @@ span.subtitle {
font-size: 1.5em; font-size: 1.5em;
font-weight: normal; font-weight: normal;
} }
#blog {
float: right;
width: 160px;
background-color: ivory;
border: 1px solid #BA9836;
padding: 0 1em;
margin-left: 1em;
margin-bottom: 1em;
}
#blogFeed {
padding-bottom: 1em;
}
.video {
padding: 5px 0;
text-align: center;
}
.video img {
margin-bottom: 5px;
}
.video .title {
font-weight: bold;
}
.video .title {
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
doc/video-snap-gocoding.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
doc/video-snap-io.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
doc/video-snap-oscon.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -78,8 +78,8 @@
<li class="navhead"><a href="/">Home</a></li> <li class="navhead"><a href="/">Home</a></li>
<li class="blank">&nbsp;</li> <li class="blank">&nbsp;</li>
<li class="navhead"><a href="/doc/go_learning.html">Go Resources</a></li>
<li class="navhead"><a href="/doc/install.html">Installing Go</a></li> <li class="navhead"><a href="/doc/install.html">Installing Go</a></li>
<li class="navhead"><a href="/doc/go_learning.html">Go Resources</a></li>
<li class="blank">&nbsp;</li> <li class="blank">&nbsp;</li>
<li class="navhead">Selected Documents</li> <li class="navhead">Selected Documents</li>