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 names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can include other contexts through the use of the include directive."
A block of code is set as follows:
package main
import "fmt"
// this is a comment
func main() {
fmt.Println("Hello World")
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
package main
import "fmt"
// this is a comment
func main() {
fmt.Println("Hello World")
}
Any command-line input or output is written as follows:
docker run --rm -ti -v $(pwd):/go/src/myapp google/golang go build myapp
New terms and important words are shown in bold.
Warnings or important notes appear like this.
Tips and tricks appear like this.