Merge pull request #254 from dlintw/patch-3

describe more about const
This commit is contained in:
astaxie
2013-09-26 22:54:20 -07:00

View File

@@ -78,6 +78,8 @@ Go对于已声明但未使用的变量会在编译阶段报错比如下面的
const MaxThread = 10
const prefix = "astaxie_"
Go 常量和一般程式語言不同的是,可以指定相當多的小數位數(例如200位)
若指定給float32自動縮短為32bit指定給float64自動縮短為64bit詳情參考[連結](http://golang.org/ref/spec#Constants)
## 内置基础类型