ch2/ch2-02 #137
Replies: 2 comments
-
在 Go 语言中,一个文件中声明的常量是否可以被项目目录下的其他源文件访问,取决于以下几个因素:
const PublicConstant = 42 // 首字母大写,导出的常量 import "fmt" func main() { func main() { |
Beta Was this translation helpful? Give feedback.
-
在 Go 语言中,一个文件中声明的常量是否可以被项目目录下的其他源文件访问,取决于以下几个因素:
const PublicConstant = 42 // 首字母大写,导出的常量 import "fmt" func main() { func main() { |
Beta Was this translation helpful? Give feedback.
-
ch2/ch2-02
中文版
https://gopl-zh.github.io/ch2/ch2-02.html
Beta Was this translation helpful? Give feedback.
All reactions