January 2020
Intermediate to advanced
640 pages
16h 56m
English
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "In the following code, you can see the definition of a generic Sword type for our upcoming game."
A block of code is set as follows:
type Sword struct { name string // Important tip for RPG players: always name your swords!}// Damage returns the damage dealt by this sword.func (Sword) Damage() int { return 2}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
type Sword struct { name string // Important tip for ...