books with chapters lol

This commit is contained in:
Mark McGranaghan
2012-10-09 19:42:36 -07:00
parent e498512b07
commit e71161efb2
7 changed files with 67 additions and 65 deletions

View File

@@ -16,7 +16,7 @@
})();
</script>
<body>
<div class="chapter" id="{{.Id}}">
<div class="example" id="{{.Id}}">
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
{{range .Segs}}
<table cellspacing="0" cellpadding="0">
@@ -34,9 +34,9 @@
</tbody>
</table>
{{end}}
{{if .NextChapter}}
{{if .NextExample}}
<p class="next">
Next example: <a href="{{.NextChapter.Id}}">{{.NextChapter.Name}}</a>.
Next example: <a href="{{.NextExample.Id}}">{{.NextExample.Name}}</a>.
</p>
{{end}}
<p class="footer">

View File

@@ -30,3 +30,33 @@
</div>
</body>
</html>
## Introduction
Go is an open-source programming language designed for
building simple, fast, and reliable software.
It's powerful to use and fun to learn.
This book is a hands-on introduction to Go. It gives you
the tools you need to understand the why of Go and how to
write real Go programs.
### Intended Audience
This book is intended for experienced programmers who may
be new to Go. If you have previous experience with
languages like Ruby, Python, Javascript, C#, or Java, you
should find this book immediately approachable even if
this is your first introduction to Go. Even if you've
worked with Go before, you may find that the material
covers ideas and techniques that you haven't seen
elsewhere.
### An Example-Based Approach
Programmers learn to program by writing programs.
_Go by Example_ therefore teaches Go exclusively via
working example programs, with each example trying to
provide the programmer a new tool for writing her own
programs.

View File

@@ -63,7 +63,7 @@ h2 {
h2 a {
text-decoration: none;
}
div.chapter {
div.example {
width: 900px;
min-width: 900px;
max-width: 900px;
@@ -71,7 +71,7 @@ div.chapter {
margin-right: auto;
margin-bottom: 120px;
}
div.chapter table {
div.example table {
margin-top: 15px;
margin-bottom: 20px;
}