Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
178 lines (154 sloc) 3.75 KB
\documentclass[a4paper,twoside,openleft]{blocksbook}
\usepackage[cm-default]{fontspec}% provides font selecting commands
\usepackage{xunicode}% provides unicode character macros
\usepackage{xltxtra} % provides some fixes/extras
\usepackage[answerdelayed,lastexercise]{exercise}
\usepackage[labelsep=period,labelfont=it,textfont=it]{caption}
\usepackage{alltt}
\usepackage{url}
\usepackage{listings}
\usepackage{color}
\usepackage{graphicx}
\usepackage{relsize}
\usepackage{xCJK}
\usepackage{scalefnt}
\usepackage{wrapfig}
\usepackage{everypage}
% Tables from Gnumeric.
\usepackage{array}
\usepackage{longtable}
\usepackage{calc}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{ifthen}
\usepackage{upquote}
\usepackage{tikz}
\usetikzlibrary{arrows,decorations.pathreplacing}
\usepackage{float}
%\usepackage{natbib}
%% Local tex stuff.
\usepackage{coderemarks}
%% Must go last.
\usepackage{hyperref}
\input{go-setup.tex}
\input{go-cc-license.tex}
\begin{document}
\thispagestyle{empty}
\newcommand{\version}{0.4}
%% Title page
\begin{center}
\hspace{1.0cm}{\scalefont{6.00}{\sffamily{\mbox{\vspace{1.0cm}Learning Go}}}}
\end{center}
\vspace*{3cm}
\begin{figure}[h!]
\begin{center}
\includegraphics[scale=0.65]{fig/bumper-inverse.png}
\end{center}
\end{figure}
\vspace*{0.02\stockheight}
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\hspace*{2,0cm}Authors:\\
\hspace*{2.0cm}\emph{Miek Gieben}\\
%%\hspace*{2.0cm}\emph{JC van Winkel}\\
%%\hspace*{2.0cm}\emph{Jeroen Bulten}\\
\vfill
\end{flushleft}
\end{minipage}
\hspace{5mm}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
Thanks to:\\
\emph{Go Authors}\\
\emph{Google}\\
\emph{Go Nuts mailing list}\\
\vfill
\end{flushright}
\end{minipage}
\vfill
\begin{center}
\hspace*{1cm}\CcGroupByNcSa{0.83}{0.95ex}\\[2.5ex]
\hspace*{1cm}{\tiny\CcNote{\CcLongnameByNcSa}}
\end{center}
\begin{center}
\hspace*{1cm}\emph{Miek Gieben -- \copyright 2010, 2011}
\end{center}
\vspace{-3em}
%% End title page %%
\newpage
\thispagestyle{empty}
\begin{figure}[H]
\begin{center}
\emph{
This work is licensed under the Attribution-NonCommercial-ShareAlike 3.0 Unported License. To
view a copy of this license, visit \url{http://creativecommons.org/licenses/by-nc-sa/3.0/}
or send a letter
to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.}
\vspace{2em}
\emph{All example code used in ths book is hereby put in the public domain.}
%%PDFcrop fails on Ubuntu
%%\includegraphics[scale=0.50]{fig/google_logo_black.pdf}
\end{center}
\end{figure}
\begin{center}
\vfill
\emph{Learning as we Go.}
\emph{Version: \version}
\tiny{Updated to Go \gorelease{2011-03-07}.}
\vspace{.2\stockheight}
\end{center}
\clearpage
\pagenumbering{roman}
\tableofcontents*
\listoffigures*
\listoftables*
\listofcode*
\listofex*
\clearpage
%% \input{todo.tex}
%% \part{Learning Go} %%
\chapter{Introduction}
\label{chap:intro}
\input{go-intro.tex}
\chapter{Basics}
\pagenumbering{arabic}
\label{chap:basics}
\input{go-basics.tex}
\chapter{Functions}
\label{chap:functions}
\input{go-functions.tex}
\chapter{Packages}
\label{chap:packages}
\input{go-packages.tex}
\chapter{Beyond the basics}
\label{chap:beyond}
\input{go-beyond.tex}
\chapter{Interfaces}
\label{chap:interfaces}
\input{go-interfaces.tex}
\chapter{Concurrency}
\label{chap:channels}
\input{go-channels.tex}
\chapter{Communication}
\label{chap:communication}
\input{go-communication.tex}
\chapter{Miscellaneous}
\label{chap:miscellaneous}
\input{go-misc.tex}
\appendix
\chapter{Colophon}
\input{go-colophon}
\begin{twocolumn}
\chapter{Index}
\printindex
\end{twocolumn}
\begin{onecolumn}
\bibliographystyle{plain}
\bibliography{go}
\newpage
\thispagestyle{empty}
\begin{center}
\emph{This page is intentionally left blank.}
\end{center}
\end{onecolumn}
\end{document}