This commit is contained in:
Xargin
2016-07-20 15:08:47 +08:00
parent fd1283d830
commit c48cca9a77
8 changed files with 10 additions and 7 deletions

View File

@@ -58,6 +58,7 @@ $ ./quoteargs one "two three" four\ five
$ go run quoteargs.go one "two three" four\ five
["one" "two three" "four five"]
```
(译注其实也可以偷懒直接go run `*.go`)
第一行的参数列表中,第一个不是以`.go`结尾的将作为可执行程序的参数运行。