blob: f98f9c243c865aa368760720dbc310e30ec01eec [file] [log] [blame]
Andrew Gerrandc23f6472010-09-22 10:43:01 +10001<link rel="stylesheet" type="text/css" href="/doc/frontpage.css">
2
Andrew Gerrandcd5191f2010-04-27 10:24:17 +10003<script src="http://www.google.com/jsapi" type="text/javascript"></script>
Andrew Gerrand7190fdd2010-03-20 11:42:57 +11004<script type="text/javascript">
Andrew Gerrand28c63052010-04-27 19:27:32 +10005function loadFeed() {
Andrew Gerrand6ab8d242010-09-16 14:01:02 +10006 var url = "http://blog.golang.org/feeds/posts/default";
7 var divId = "blogFeed";
8 var feed = new google.feeds.Feed(url);
Nigel Taofc98af92010-11-05 16:13:58 +11009 feed.setNumEntries(4)
Andrew Gerrand6ab8d242010-09-16 14:01:02 +100010 feed.load(function (result) {
11 var container = document.getElementById(divId)
12 if (result.error) {
13 container.innerHTML = "Error loading feed.";
14 return;
15 }
16 container.innerHTML = "";
17 var entries = result.feed.entries;
18 for (var i=0; i<entries.length; i++) {
19 var li = document.createElement("li");
20 var a = document.createElement("a");
21 a.setAttribute("href", entries[i].link);
22 var span_title = document.createElement("span");
23 span_title.appendChild(document.createTextNode(entries[i].title));
24 span_title.className = "title";
25 a.appendChild(span_title);
26 li.appendChild(a);
27 var span_date = document.createElement("span");
28 span_date.appendChild(document.createTextNode(entries[i].publishedDate.substr(0, 11)));
29 span_date.className = "date";
30 a.appendChild(span_date);
31 container.appendChild(li);
32 }
33 });
Andrew Gerrand7190fdd2010-03-20 11:42:57 +110034}
35google.load("feeds", "1");
Andrew Gerrand28c63052010-04-27 19:27:32 +100036google.setOnLoadCallback(loadFeed);
Andrew Gerrand7190fdd2010-03-20 11:42:57 +110037</script>
Andrew Gerrand7190fdd2010-03-20 11:42:57 +110038
Andrew Gerrand6ab8d242010-09-16 14:01:02 +100039 <div id="frontpage">
40 <div class="left-column">
41 <p style="margin-top: 0;">
42 The Go programming language is an open source project to make
43 programmers more productive. Go is expressive, concise, clean,
44 and efficient. Its concurrency mechanisms make it easy to write
45 programs that get the most out of multicore and networked machines,
46 while its novel type system enables flexible and modular program
47 construction. Go compiles quickly to machine code yet has the
48 convenience of garbage collection and the power of run-time reflection.
49 It's a fast, statically typed, compiled language that feels like a
50 dynamically typed, interpreted language.
51 </p>
52 <h2>Check it out!</h2>
53 <p>
Andrew Gerranda89b0ed2010-10-22 10:49:29 +110054 <div class="how">[<a href="/doc/playground.html">How does this work?</a>]</div>
Andrew Gerrandc23f6472010-09-22 10:43:01 +100055 <a href="/doc/install.html">Install Go now</a>, or try it right here in your browser:</p>
Andrew Gerrand6ab8d242010-09-16 14:01:02 +100056 <div id="playground" class="small"></div>
57 <script src="/doc/play/playground.js"></script>
58 </div>
59 <div class="right-column">
60 <div id="content-rotating">
61 <div id="content-videos">
62 <h2>Go Videos <span class="more">| <a href="/doc/docs.html#videos_talks">More...</a></span></h2>
Andrew Gerrand0e3eefa2010-12-03 06:57:30 +090063 <a class="video" href="http://osdc.blip.tv/file/4432146/"><img src="/doc/play_overlay.png" class="thumbnail _004" /> <span class="caption title">&ldquo;Practical Go Programming&rdquo;</span> <span class="caption description">OSDC Tech Talk</span></a>
Andrew Gerrand6ab8d242010-09-16 14:01:02 +100064 </div>
65 <h2>Go Blog <span class="more">| <a href="http://blog.golang.org/">More...</a></span></h2>
66 <div id="content-blog">
67 <ul id="blogFeed">
68 </ul>
69 </div>
70 </div>
71 <h2>Quick Links</h2>
72 <div id="resources">
73 <div id="resources-users">
74 <h3>For newcomers:</h3>
75 <ul>
76 <li><a href="/doc/install.html">Getting Started</a></li>
77 <li><a href="/doc/go_tutorial.html">Tutorial</a></li>
78 <li><a href="/doc/effective_go.html">Effective Go</a></li>
79 <li><a href="/doc/go_faq.html">Go FAQ</a></li>
80 <li><a href="/doc/docs.html">Other Documentation</a></li>
81 </ul>
82 </div>
83 <div id="resources-contributors" class="resources">
84 <h3>For developers:</h3>
85 <ul>
86 <li><a href="http://godashboard.appspot.com/package">Package Dashboard</a></li>
87 <li><a href="http://code.google.com/p/go/issues">Issue Tracker</a></li>
88 <li><a href="http://godashboard.appspot.com/">Build Status</a></li>
89 <li><a href="http://code.google.com/p/go/source/browse/">Go Source</a> [<a href="http://code.google.com/p/go/source/list">changes</a>]</li>
90 <li><a href="/pkg/">Package Reference</a></li>
91 <li><a href="/doc/go_spec.html">Language Specification</a></li>
92 </ul>
93 </div>
94 </div>
95 </div>
96 <div class="end-columns"></div>
Andrew Gerrandbab711b2010-07-30 10:36:13 +100097 </div>