Skip to content

Commit eb1a040

Browse files
committed
Rename chapter
Signed-off-by: Baiju Muthukadan <[email protected]>
1 parent cca0ed8 commit eb1a040

File tree

13 files changed

+30
-30
lines changed

13 files changed

+30
-30
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ sphinx:
3434
pandoc -o sphinx/control-structures.rst control-structures.tex
3535
pandoc -o sphinx/data-structures.rst data-structures.tex
3636
pandoc -o sphinx/functions.rst functions.tex
37-
pandoc -o sphinx/interfaces.rst interfaces.tex
37+
pandoc -o sphinx/objects.rst objects.tex
3838
pandoc -o sphinx/concurrency.rst concurrency.tex
3939
pandoc -o sphinx/packages.rst packages.tex
4040
pandoc -o sphinx/io.rst io.tex

amazon/product-description.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h4>Table of Contents</h4>
5252
<li>3. Control Structures</li>
5353
<li>4. Data Structures</li>
5454
<li>5. Functions</li>
55-
<li>6. Interfaces</li>
55+
<li>6. Objects</li>
5656
<li>7. Concurrency</li>
5757
<li>8. Packages</li>
5858
<li>9. Input/Output</li>

answers.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ \section*{Chapter 4: Data Structures}
5151

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

54-
\section*{Chapter 5: Functions \& Methods}
54+
\section*{Chapter 5: Functions}
5555

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

5858
\textbf{Solution:}
5959

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

62-
\section*{Chapter 6: Interfaces}
62+
\section*{Chapter 6: Objects}
6363

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

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

7272
\textbf{Solution:}
7373

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

7676
\section*{Chapter 7: Concurrency}
7777

File renamed without changes.

essential-go.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
\input{./control-structures.tex}
238238
\input{./data-structures.tex}
239239
\input{./functions.tex}
240-
\input{./interfaces.tex}
240+
\input{./objects.tex}
241241
\input{./concurrency.tex}
242242
\input{./packages.tex}
243243
\input{./io.tex}

functions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\cleardoublepage
22
\phantomsection
3-
\chapter{Functions \& Methods}
3+
\chapter{Functions}
44

55
\begin{quote}
66
\textit{Either mathematics is too big for the human mind, or the human mind is

introduction.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@ \section{Organization of Chapters}
246246
covered how to send input parameters and return values. It also explained about
247247
variadic function and anonymous function. This chapter briefly also covered
248248
methods.
249-
\item[Chapter 6: Interfaces] \hfill \\
250-
This chapter explained the concept of interfaces and it's uses. Interface is an
251-
important concept in Go. Understanding interfaces and properly using it makes
252-
the design robust. The chapter covered empty interface. Also, briefly explained
253-
about pointer receiver and its significance. Type assertions and type switches
254-
are also explained.
249+
\item[Chapter 6: Objects] \hfill \\
250+
This chapter explained the concept of objects and interfaces and it's uses.
251+
Interface is an important concept in Go. Understanding interfaces and properly
252+
using it makes the design robust. The chapter covered empty interface. Also,
253+
briefly explained about pointer receiver and its significance. Type assertions
254+
and type switches are also explained.
255255
\item[Chapter 7: Concurrency] \hfill \\
256256
This chapter explained concurrency features of Go. Based on your problem, you
257257
can choose channels or other synchronization techniques. This chapter covered

interfaces.tex renamed to objects.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
\cleardoublepage
22
\phantomsection
3-
\chapter{Interfaces}
3+
\chapter{Objects}
44

55
\begin{quote}
66
\textit{Program to an interface, not an implementation.} -- Design Patterns by Gang of Four

sphinx/answers.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ capital, currency, and population.
174174
fmt.Printf("%#v\n", countries)
175175
}
176176
177-
Chapter 5: Functions & Methods
178-
------------------------------
177+
Chapter 5: Functions
178+
--------------------
179179

180180
**Problem 1:** Write a program with a function to calculate the
181181
perimeter of a circle.
@@ -202,8 +202,8 @@ perimeter of a circle.
202202
fmt.Println(c.Area())
203203
}
204204
205-
Chapter 6: Interfaces
206-
---------------------
205+
Chapter 6: Objects
206+
------------------
207207

208208
**Problem 1:** Implement the built-in ``error`` interface for a custom
209209
data type. This is how the ``error`` interface is defined:

sphinx/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Functions & Methods
2-
===================
1+
Functions
2+
=========
33

44
*Either mathematics is too big for the human mind, or the human mind
55
is more than a machine.* — Kurt Gödel

sphinx/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Essentials of Go Programming
3030
control-structures
3131
data-structures
3232
functions
33-
interfaces
33+
objects
3434
concurrency
3535
packages
3636
io

sphinx/introduction.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,14 @@ Chapter 5: Functions
262262
It also explained about variadic function and anonymous function.
263263
This chapter briefly also covered methods.
264264
265-
Chapter 6: Interfaces
265+
Chapter 6: Objects
266266
|
267-
| This chapter explained the concept of interfaces and it’s uses.
268-
Interface is an important concept in Go. Understanding interfaces
269-
and properly using it makes the design robust. The chapter covered
270-
empty interface. Also, briefly explained about pointer receiver and
271-
its significance. Type assertions and type switches are also
272-
explained.
267+
| This chapter explained the concept of objects and interfaces and
268+
it’s uses. Interface is an important concept in Go. Understanding
269+
interfaces and properly using it makes the design robust. The
270+
chapter covered empty interface. Also, briefly explained about
271+
pointer receiver and its significance. Type assertions and type
272+
switches are also explained.
273273
274274
Chapter 7: Concurrency
275275
|

sphinx/interfaces.rst renamed to sphinx/objects.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Interfaces
2-
==========
1+
Objects
2+
=======
33

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

0 commit comments

Comments
 (0)