yumaojun03 0761778363 ```
docs(day01): 添加运算符和变量作用域文档

- 新增运算符文档,详细介绍Go语言的算术、关系、逻辑、位、赋值等运算符
- 添加变量作用域文档,涵盖局部变量、全局变量、作用域嵌套和可见性规则
- 补充相关代码示例和实践案例
- 更新README目录结构,添加新章节链接
```
2025-12-28 15:53:05 +08:00

15 lines
244 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package pkg1
// 导出变量 首字母大写public
var (
Var1 = "This is Var1"
Var2 = "This is Var2"
// 未导出变量 首字母小写(private)
var3 = "This is var3" // unexported variable
)
func GetVar3() string {
return var3
}