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

  • Go Systems Programming
  • Mihalis Tsoukalos
  • 185字
  • 2021-07-02 18:07:52

Conventions

In this book, you will find a number of text styles 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: "This is because the main() function is where the program execution begins."

A block of code is set as follows:

package main 
 
import "fmt" 
import "os" 
 
func main() { 
   arguments := os.Args 
   for i := 0; i < len(arguments); i++ { 
         fmt.Println(arguments[i]) 
   } 
} 

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" 
import "os" 
 
func main() { 
   arguments := os.Args 
   for i := 0; i < len(arguments); i++ { 
         fmt.Println(arguments[i]) 
   } 
} 

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

$ go run hw.go
Hello World!  

New terms and important words are shown in bold.

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 阳谷县| 湖口县| 盘锦市| 岱山县| 方正县| 富阳市| 博乐市| 子洲县| 淳化县| 赤水市| 钟山县| 鸡西市| 肇州县| 神木县| 黑河市| 平果县| 兴业县| 呼玛县| 云龙县| 南丰县| 阿克| 黎平县| 渑池县| 寻甸| 郁南县| 沭阳县| 万山特区| 长沙市| 中宁县| 嘉荫县| 常德市| 鱼台县| 健康| 南召县| 确山县| 翁源县| 思茅市| 陵水| 塔河县| 定南县| 新泰市|