Andrew Gerrand | c23f647 | 2010-09-22 10:43:01 +1000 | [diff] [blame] | 1 | <link rel="stylesheet" type="text/css" href="/doc/frontpage.css"> |
| 2 | |
Andrew Gerrand | cd5191f | 2010-04-27 10:24:17 +1000 | [diff] [blame] | 3 | <script src="http://www.google.com/jsapi" type="text/javascript"></script> |
Andrew Gerrand | 7190fdd | 2010-03-20 11:42:57 +1100 | [diff] [blame] | 4 | <script type="text/javascript"> |
Andrew Gerrand | 28c6305 | 2010-04-27 19:27:32 +1000 | [diff] [blame] | 5 | function loadFeed() { |
Andrew Gerrand | 6ab8d24 | 2010-09-16 14:01:02 +1000 | [diff] [blame] | 6 | var url = "http://blog.golang.org/feeds/posts/default"; |
| 7 | var divId = "blogFeed"; |
| 8 | var feed = new google.feeds.Feed(url); |
Nigel Tao | fc98af9 | 2010-11-05 16:13:58 +1100 | [diff] [blame] | 9 | feed.setNumEntries(4) |
Andrew Gerrand | 6ab8d24 | 2010-09-16 14:01:02 +1000 | [diff] [blame] | 10 | 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 Gerrand | 7190fdd | 2010-03-20 11:42:57 +1100 | [diff] [blame] | 34 | } |
| 35 | google.load("feeds", "1"); |
Andrew Gerrand | 28c6305 | 2010-04-27 19:27:32 +1000 | [diff] [blame] | 36 | google.setOnLoadCallback(loadFeed); |
Andrew Gerrand | 7190fdd | 2010-03-20 11:42:57 +1100 | [diff] [blame] | 37 | </script> |
Andrew Gerrand | 7190fdd | 2010-03-20 11:42:57 +1100 | [diff] [blame] | 38 | |
Andrew Gerrand | 6ab8d24 | 2010-09-16 14:01:02 +1000 | [diff] [blame] | 39 | <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 Gerrand | a89b0ed | 2010-10-22 10:49:29 +1100 | [diff] [blame] | 54 | <div class="how">[<a href="/doc/playground.html">How does this work?</a>]</div> |
Andrew Gerrand | c23f647 | 2010-09-22 10:43:01 +1000 | [diff] [blame] | 55 | <a href="/doc/install.html">Install Go now</a>, or try it right here in your browser:</p> |
Andrew Gerrand | 6ab8d24 | 2010-09-16 14:01:02 +1000 | [diff] [blame] | 56 | <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 Gerrand | 0e3eefa | 2010-12-03 06:57:30 +0900 | [diff] [blame] | 63 | <a class="video" href="http://osdc.blip.tv/file/4432146/"><img src="/doc/play_overlay.png" class="thumbnail _004" /> <span class="caption title">“Practical Go Programming”</span> <span class="caption description">OSDC Tech Talk</span></a> |
Andrew Gerrand | 6ab8d24 | 2010-09-16 14:01:02 +1000 | [diff] [blame] | 64 | </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 Gerrand | bab711b | 2010-07-30 10:36:13 +1000 | [diff] [blame] | 97 | </div> |