In this book, you will find a number of styles of text 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: "The setProxy
function is called after every request, and you can see it as the first line in our handler."
A block of code is set as follows:
package main import ( "net/http" "html/template" "time" "regexp" "fmt" "io/ioutil" "database/sql" "log" "runtime" _ "github.com/go-sql-driver/mysql" )
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" ) func stringReturn(text string) string { return text } func main() { myText := stringReturn("Here be the code") fmt.Println(myText) }
Any command-line input or output is written as follows:
go get github.com/go-sql-driver/mysql
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "If you upload a file by dragging it to the Drop files here to upload box, within a few seconds you'll see that the file is noted as changed in the web interface."
3.138.69.163