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

  • 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.
主站蜘蛛池模板: 平阴县| 家居| 沙田区| 许昌县| 黄冈市| 建平县| 宜良县| 饶平县| 阿拉善右旗| 迁安市| 新泰市| 高清| 怀宁县| 镇康县| 霍州市| 衡阳县| 杂多县| 资兴市| 东乡族自治县| 石阡县| 迭部县| 航空| 沧源| 灌云县| 济阳县| 胶南市| 奈曼旗| 饶阳县| 鹿泉市| 阿克陶县| 建平县| 大荔县| 大理市| 仪陇县| 甘孜县| 喀喇沁旗| 炉霍县| 双峰县| 正定县| 云龙县| 玉环县|