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

  • 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.
主站蜘蛛池模板: 五常市| 金华市| 灵川县| 宁德市| 新绛县| 巫山县| 阜南县| 绥芬河市| 营山县| 京山县| 南通市| 镇宁| 张家川| 简阳市| 高清| 开封县| 六盘水市| 赣榆县| 鄂尔多斯市| 平邑县| 柳江县| 成安县| 海盐县| 宁津县| 苏尼特左旗| 元朗区| 怀柔区| 龙江县| 西安市| 咸丰县| 沅江市| 平安县| 洪泽县| 浪卡子县| 娄底市| 信丰县| 剑阁县| 津南区| 柳江县| 大兴区| 金寨县|