初始提交

This commit is contained in:
2025-08-24 01:01:26 +08:00
commit e51feb1296
35 changed files with 9348 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# 第一章:基础语法
本章将介绍 Go 语言的基础语法,包括程序结构、变量、常量、数据类型和运算符。
## 学习目标
- 理解 Go 程序的基本结构
- 掌握变量声明和初始化的方法
- 了解 Go 的基本数据类型
- 学会使用各种运算符
## 文件列表
- `01-hello-world.go` - Hello World 程序和基本结构
- `02-variables.go` - 变量声明和初始化
- `03-constants.go` - 常量定义和使用
- `04-data-types.go` - 基本数据类型
- `05-operators.go` - 运算符使用
## 运行示例
```bash
go run 01-hello-world.go
go run 02-variables.go
# ... 依此类推
```