Skip to content

Commit

Permalink
Rename chapter
Browse files Browse the repository at this point in the history
Signed-off-by: Baiju Muthukadan <baiju.m.mail@gmail.com>
  • Loading branch information
baijum committed Jun 8, 2023
1 parent cca0ed8 commit eb1a040
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sphinx:
pandoc -o sphinx/control-structures.rst control-structures.tex
pandoc -o sphinx/data-structures.rst data-structures.tex
pandoc -o sphinx/functions.rst functions.tex
pandoc -o sphinx/interfaces.rst interfaces.tex
pandoc -o sphinx/objects.rst objects.tex
pandoc -o sphinx/concurrency.rst concurrency.tex
pandoc -o sphinx/packages.rst packages.tex
pandoc -o sphinx/io.rst io.tex
Expand Down
2 changes: 1 addition & 1 deletion amazon/product-description.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h4>Table of Contents</h4>
<li>3. Control Structures</li>
<li>4. Data Structures</li>
<li>5. Functions</li>
<li>6. Interfaces</li>
<li>6. Objects</li>
<li>7. Concurrency</li>
<li>8. Packages</li>
<li>9. Input/Output</li>
Expand Down
6 changes: 3 additions & 3 deletions answers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ \section*{Chapter 4: Data Structures}

\lstinputlisting[numbers=none]{code/answers/data-structures/nations.go}

\section*{Chapter 5: Functions \& Methods}
\section*{Chapter 5: Functions}

\textbf{Problem 1:} Write a program with a function to calculate the perimeter of a circle.

\textbf{Solution:}

\lstinputlisting[numbers=none]{code/answers/functions/circle.go}

\section*{Chapter 6: Interfaces}
\section*{Chapter 6: Objects}

\textbf{Problem 1:} Implement the built-in \texttt{error} interface for a custom data type. This is how the \texttt{error} interface is defined:

Expand All @@ -71,7 +71,7 @@ \section*{Chapter 6: Interfaces}

\textbf{Solution:}

\lstinputlisting[numbers=none]{code/answers/interfaces/error.go}
\lstinputlisting[numbers=none]{code/answers/objects/error.go}

\section*{Chapter 7: Concurrency}

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion essential-go.tex
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
\input{./control-structures.tex}
\input{./data-structures.tex}
\input{./functions.tex}
\input{./interfaces.tex}
\input{./objects.tex}
\input{./concurrency.tex}
\input{./packages.tex}
\input{./io.tex}
Expand Down
2 changes: 1 addition & 1 deletion functions.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\cleardoublepage
\phantomsection
\chapter{Functions \& Methods}
\chapter{Functions}

\begin{quote}
\textit{Either mathematics is too big for the human mind, or the human mind is
Expand Down
12 changes: 6 additions & 6 deletions introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ \section{Organization of Chapters}
covered how to send input parameters and return values. It also explained about
variadic function and anonymous function. This chapter briefly also covered
methods.
\item[Chapter 6: Interfaces] \hfill \\
This chapter explained the concept of interfaces and it's uses. Interface is an
important concept in Go. Understanding interfaces and properly using it makes
the design robust. The chapter covered empty interface. Also, briefly explained
about pointer receiver and its significance. Type assertions and type switches
are also explained.
\item[Chapter 6: Objects] \hfill \\
This chapter explained the concept of objects and interfaces and it's uses.
Interface is an important concept in Go. Understanding interfaces and properly
using it makes the design robust. The chapter covered empty interface. Also,
briefly explained about pointer receiver and its significance. Type assertions
and type switches are also explained.
\item[Chapter 7: Concurrency] \hfill \\
This chapter explained concurrency features of Go. Based on your problem, you
can choose channels or other synchronization techniques. This chapter covered
Expand Down
2 changes: 1 addition & 1 deletion interfaces.tex → objects.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\cleardoublepage
\phantomsection
\chapter{Interfaces}
\chapter{Objects}

\begin{quote}
\textit{Program to an interface, not an implementation.} -- Design Patterns by Gang of Four
Expand Down
8 changes: 4 additions & 4 deletions sphinx/answers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ capital, currency, and population.
fmt.Printf("%#v\n", countries)
}
Chapter 5: Functions & Methods
------------------------------
Chapter 5: Functions
--------------------

**Problem 1:** Write a program with a function to calculate the
perimeter of a circle.
Expand All @@ -202,8 +202,8 @@ perimeter of a circle.
fmt.Println(c.Area())
}
Chapter 6: Interfaces
---------------------
Chapter 6: Objects
------------------

**Problem 1:** Implement the built-in ``error`` interface for a custom
data type. This is how the ``error`` interface is defined:
Expand Down
4 changes: 2 additions & 2 deletions sphinx/functions.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Functions & Methods
===================
Functions
=========

*Either mathematics is too big for the human mind, or the human mind
is more than a machine.* — Kurt Gödel
Expand Down
2 changes: 1 addition & 1 deletion sphinx/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Essentials of Go Programming
control-structures
data-structures
functions
interfaces
objects
concurrency
packages
io
Expand Down
14 changes: 7 additions & 7 deletions sphinx/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,14 @@ Chapter 5: Functions
It also explained about variadic function and anonymous function.
This chapter briefly also covered methods.
Chapter 6: Interfaces
Chapter 6: Objects
|
| This chapter explained the concept of interfaces and it’s uses.
Interface is an important concept in Go. Understanding interfaces
and properly using it makes the design robust. The chapter covered
empty interface. Also, briefly explained about pointer receiver and
its significance. Type assertions and type switches are also
explained.
| This chapter explained the concept of objects and interfaces and
it’s uses. Interface is an important concept in Go. Understanding
interfaces and properly using it makes the design robust. The
chapter covered empty interface. Also, briefly explained about
pointer receiver and its significance. Type assertions and type
switches are also explained.
Chapter 7: Concurrency
|
Expand Down
4 changes: 2 additions & 2 deletions sphinx/interfaces.rst → sphinx/objects.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Interfaces
==========
Objects
=======

*Program to an interface, not an implementation.* – Design Patterns
by Gang of Four
Expand Down

0 comments on commit eb1a040

Please sign in to comment.