Merge pull request #433 from drakmail/patch-1

Update 02.1.md
This commit is contained in:
astaxie
2015-01-13 11:17:43 -08:00

View File

@@ -24,7 +24,7 @@ It prints following information.
One thing that you should know in the first is that Go programs are composed by `package`.
`package<pkgName>` (In this case is `package main`) tells us this source file belongs to `main` package, and the keyword `main` tells us this package will be compiled to a program instead of package files whose extensions are `.a`.
`package <pkgName>` (In this case is `package main`) tells us this source file belongs to `main` package, and the keyword `main` tells us this package will be compiled to a program instead of package files whose extensions are `.a`.
Every executable program has one and only one `main` package, and you need an entry function called `main` without any arguments or return values in the `main` package.