上QQ阅读APP看书,第一时间看更新
Conventions used
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: "Let's take a look at the len function in the next section."
A block of code is set as follows:
//main package has examples shown
// in Hands-On Data Structures and algorithms with Go book
package main
// importing fmt package
import (
"fmt"
)
// main method
func main() {
fmt.Println("Hello World")
}
Any command-line input or output is written as follows:
go build
./hello_world
Bold: Indicates a new term, an important word, or words that you see on screen.
Warnings or important notes appear like this.
Tips and tricks appear like this.