Conventions used
There are a number of text conventions used throughout this book.
Code in text
: 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: “You can test this code from ch03/type-definition/main.go
.”
A block of code is set as follows:
func main() { a := -1 var b uint32 b = 4294967295 var c float32 = 42.1 }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
func main() { a := 4294967295 b := uint32(a) c := float32(b) }
Tips or important notes
Appear like this.