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

  • 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.
主站蜘蛛池模板: 资中县| 太白县| 南和县| 新和县| 道孚县| 枣庄市| 邵武市| 横峰县| 胶州市| 长兴县| 潜山县| 庆阳市| 永顺县| 建昌县| 西宁市| 临沂市| 山阴县| 镇远县| 嘉义县| 化州市| 望都县| 江陵县| 龙泉市| 龙川县| 陵川县| 兴城市| 余姚市| 开封市| 华坪县| 武威市| 财经| 襄垣县| 南康市| 河津市| 长宁区| 吴桥县| 寻甸| 右玉县| 昭平县| 漯河市| 桦川县|