Conventions
Many Go code snippets will not include package main and func main() {}. It is assumed that Go code snippets are compiled within this necessary structure, unless otherwise noted. It will also be assumed throughout the book that code example are compiled in a directory call myprogram and thus compiled to a myprogram binary. The reader will recognize, however, that the code could be copied to any folder in your GOPATH/src directory and/or compiled to a binary named according to the reader's preference.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access