summaryrefslogtreecommitdiff
path: root/doc/go_for_cpp_programmers.html
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-10-01 14:08:00 -0700
committerRobert Griesemer <gri@golang.org>2009-10-01 14:08:00 -0700
commit2402780f5fd37ffc355df81c539bdd09a526c3f9 (patch)
treed788feee5c1fcfcf09d0ae99aef491b1270b5c04 /doc/go_for_cpp_programmers.html
parent28438e3dce3cdf3dab6f6e2be3f0a7e842d22593 (diff)
downloadgolang-2402780f5fd37ffc355df81c539bdd09a526c3f9.tar.gz
Factored out boilerplate from all html docs in doc directory:
- the first HTML comment in those files is extracted as page title when serving them - lib/godoc.html is top-level template for all pages served - experimented a bit with package documentation layout (feedback welcome) - various related cleanups TODO: - The / page (doc/root.html) content repeats links that are in the navigation bar. It needs to be cleaned up. R=rsc DELTA=826 (86 added, 692 deleted, 48 changed) OCL=35230 CL=35245
Diffstat (limited to 'doc/go_for_cpp_programmers.html')
-rw-r--r--doc/go_for_cpp_programmers.html73
1 files changed, 1 insertions, 72 deletions
diff --git a/doc/go_for_cpp_programmers.html b/doc/go_for_cpp_programmers.html
index 14ed14957..055242f71 100644
--- a/doc/go_for_cpp_programmers.html
+++ b/doc/go_for_cpp_programmers.html
@@ -1,59 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/transitional.dtd">
-<html>
-<head>
-
-<!--
-To convert <h2>Foo</h2> into <h2 id="Foo">Foo</h2>
-and convert §Foo into §<a href="#Foo">Foo</a>:
-
- Edit ,s/<(h.)>(.*)(<\/h.>)/<\1 id="\2">\2\3/g
- Edit ,x g/id="/ x/id="[^"]+"/ s/ /_/g
- Edit ,s/§([^),.]+)/§<a href="#\1">\1<\/a>/g
- Edit ,x/href="#[^"]+"/ s/ /_/g
--->
-
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
- <title>Go For C++ Programmers</title>
-
- <link rel="stylesheet" type="text/css" href="style.css">
- <script type="text/javascript" src="godocs.js"></script>
-
-</head>
-
-<body>
-
-<div id="topnav">
-<table summary=""><tr>
-<td id="headerImage">
-<a href="./"><img src="./logo_blue.png" height="44" width="120" alt="Go Home Page" style="border:0" /></a>
-</td>
-<td id="headerDocSetTitle">The Go Programming Language</td>
-</tr>
-</table>
-</div>
-
-<div id="linkList">
- <ul>
- <li class="navhead">Related Guides</li>
- <li><a href="go_spec.html">Language Specification</a></li>
- <li><a href="go_mem.html">Memory Model</a></li>
- <li><a href="go_tutorial.html">Tutorial</a></li>
- <li><a href="effective_go.html">Effective Go</a></li>
- <li class="blank">&nbsp;</li>
- <li class="navhead">Other Resources</li>
- <li><a href="go_faq.html">FAQ</a></li>
- <li><a href="go_lang_faq.html">Language Design FAQ</a></li>
- <li><a href="go_for_cpp_programmers.html">Go for C++ Programmers</a></li>
- <li class="blank">&nbsp;</li>
- <li class="navhead">Home</li>
- <li><a href="/">Go documentation home</a></li>
- </ul>
-</div>
-
-<div id="content">
-
-<h1 id="The_Go_Programming_Language_Specification">Go For C++ Programmers</h1>
+<!-- Go For C++ Programmers -->
<p>
Go is a systems programming language intended as an alternative to C++.
@@ -72,11 +17,6 @@ For a detailed description of the Go language, see the
<p>
There is more <a href="./">documentation about go</a>.
-
- <!-- The Table of Contents is automatically inserted in this <div>.
- Do not delete this <div>. -->
- <div id="nav"></div>
-
<h2 id="Conceptual_Differences">Conceptual Differences</h2>
<ul>
@@ -666,14 +606,3 @@ func f4(ch &lt;- chan cmd2) int {
return &lt;- my_ch;
}
</pre>
-
-</div>
-
-<div id="footer">
-<p>Except as noted, this content is
- licensed under <a href="http://creativecommons.org/licenses/by/3.0/">
- Creative Commons Attribution 3.0</a>.
-</div>
-
-</body>
-</html>