add links to source code, errata

This commit is contained in:
Alan Donovan
2015-10-20 16:22:54 -04:00
parent a4a4b5922f
commit a0139b46de
3 changed files with 99 additions and 61 deletions

27
errata.html Normal file
View File

@@ -0,0 +1,27 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The Go Programming Language - Errata</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<style>
body {
width: 38em;
margin: auto;
}
pre {
padding-left: 1em;
}
</style>
</head>
<body>
<h1>Errata</h1>
<p>
<b>p.13</b>: As printed, the <code>gopl.io/ch1/lissajous</code> program
is deterministic, not random. We've added this statement to
the downloadable program so that it prints a pseudo-random image
each time it is run. (Thanks to Randall McPherson.)
</p>
<pre>rand.Seed(time.Now().UTC().UnixNano())</pre>
</body>
</html>

View File

@@ -1,61 +1,10 @@
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="go-import" content="gopl.io git https://github.com/adonovan/gopl.io"></meta>
<title>The Go Programming Language</title>
<style>
@font-face {
font-family: MinionPro;
font-weight: normal;
src: url("fonts/MinionPro-Regular.ttf");
}
@font-face {
font-family: Lato;
font-weight: bold;
src: url("fonts/Lato-Bold.ttf");
}
@font-face {
font-family: Consolas;
font-weight: normal;
src: url("fonts/Consolas.ttf");
}
body {
font-family: MinionPro,"Times New Roman";
}
table {
margin: auto;
}
h1 {
font-family: Lato,Helvetica;
text-align: center
}
td {
padding: 1em;
vertical-align: top;
}
code, pre {
font-family: Consolas;
}
p {
font-size: 110%;
line-height: 130%;
}
.center {
text-align: center;
}
.bio {
font-size: 95%;
text-align: justify;
}
.sm {
font-size: 80%;
}
#toc h1 {
font-size: 95%;
font-weight: normal;
text-align: left
}
</style>
<script>
<meta name="go-import" content="gopl.io git https://github.com/adonovan/gopl.io"></meta>
<title>The Go Programming Language</title>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -63,7 +12,34 @@ p {
ga('create', 'UA-68781809-1', 'auto');
ga('send', 'pageview');
</script>
</script>
<link rel="stylesheet" type="text/css" href="style.css" />
<style>
.bio {
font-size: 95%;
text-align: justify;
}
.biblio {
margin: 0.5em;
font-size: 110%;
line-height: 130%;
}
.center {
text-align: center;
}
td {
padding: 1em;
vertical-align: top;
}
#toc h1 {
font-size: 95%;
font-weight: normal;
}
hr {
border: 0;
border-top: thin solid #ccc
}
</style>
</head>
<body>
<table><tr>
@@ -77,8 +53,8 @@ p {
</br>
</td>
<td width='500'>
<h1>The Go Programming Language</h1>
<p class='center'>
<h1 class='center'>The Go Programming Language</h1>
<p class='biblio center'>
Alan A. A. Donovan &middot; Brian W. Kernighan<br/>
Arriving October 30, 2015 in paperback and e-book<br/>
Addison-Wesley; 380pp; ISBN:&nbsp;978-0134190440<br/>
@@ -97,6 +73,8 @@ Addison-Wesley; 380pp; ISBN:&nbsp;978-0134190440<br/>
<h1>4. Composite Types</h1>
<h1>5. Functions</h1>
<h1>6. Methods</h1>
<hr/>
<h1><a href='https://github.com/adonovan/gopl.io/'>Source code</a></h1>
</td>
<td>
<h1>7. Interfaces</h1>
@@ -107,8 +85,11 @@ Addison-Wesley; 380pp; ISBN:&nbsp;978-0134190440<br/>
<h1>12. Reflection</h1>
<h1>13. Low-Level Programming</h1>
<h1>Index [<a href='ch1.pdf'/>PDF</a>]</h1>
<hr/>
<h1><a href='errata.html'>Errata</a></h1>
</td>
</tr></table>
</tr>
</table>
</div>
<p class="bio">

30
style.css Normal file
View File

@@ -0,0 +1,30 @@
@font-face {
font-family: MinionPro;
font-weight: normal;
src: url("fonts/MinionPro-Regular.ttf");
}
@font-face {
font-family: Lato;
font-weight: bold;
src: url("fonts/Lato-Bold.ttf");
}
@font-face {
font-family: Consolas;
font-weight: normal;
src: url("fonts/Consolas.ttf");
}
body {
font-family: MinionPro,"Times New Roman";
}
table {
margin: auto;
}
h1 {
font-family: Lato,Helvetica;
margin-top: 0;
margin-bottom: 0.5em;
}
code, pre {
font-family: Consolas;
font-size: 92%;
}