Conventions

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."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.69.163