官术网_书友最值得收藏!

  • Security with Go
  • John Daniel Leon
  • 257字
  • 2021-06-30 19:06:37

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: " The make() function will create a slice of a certain type with a certain length and capacity."

A block of code is set as follows:

package main

import (
"fmt"
)

func main() {
// Basic for loop
for i := 0; i < 3; i++ {
fmt.Println("i:", i)
}

// For used as a while loop
n := 5
for n < 10 {
fmt.Println(n)
n++
}
}

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 main() {
// Basic for loop
for i := 0; i < 3; i++ {
fmt.Println("i:", i)
}

// For used as a while loop
n := 5
for n < 10 {
fmt.Println(n)
n++
}
}

Any command-line input or output is written as follows:

sudo apt-get install golang-go 

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: " In Windows 10, this can be found by navigating to Control Panel | System |
Advanced System Settings | Environment Variables."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 宁津县| 衡水市| 抚顺县| 叶城县| 永和县| 佛坪县| 策勒县| 察隅县| 乐业县| 宁国市| 介休市| 长泰县| 平泉县| 道孚县| 东丰县| 册亨县| 闽侯县| 壤塘县| 渑池县| 英超| 凉城县| 阳谷县| 子长县| 崇礼县| 分宜县| 克东县| 光泽县| 正阳县| 岳池县| 金川县| 马山县| 眉山市| 温泉县| 夏河县| 丹棱县| 南投县| 连南| 铁力市| 岢岚县| 磐安县| 天台县|