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

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.
主站蜘蛛池模板: 卓尼县| 龙岩市| 盐城市| 武威市| 肃北| 郁南县| 抚顺市| 沅江市| 镇巴县| 大安市| 怀宁县| 色达县| 黄骅市| 奉贤区| 台前县| 杭州市| 临清市| 桐柏县| 武安市| 高邑县| 滁州市| 进贤县| 瑞昌市| 虎林市| 洛扎县| 永泰县| 防城港市| 临邑县| 左云县| 酉阳| 崇州市| 连云港市| 佛学| 罗定市| 阜新市| 高雄市| 潍坊市| 奉贤区| 江安县| 齐齐哈尔市| 宜良县|