Files
pro-go-study/27-reflection/reflection/types.go
yanzuoguang 244a3f73ce refactor(main):重构主函数并提取代码到新文件
- 将原有main.go中的多个函数移至新文件re1.go
- 保留main.go中的主函数调用结构
- 添加Payment结构体定义到types.go
- 清理main.go中不再使用的导入和类型定义- 确保所有功能逻辑保持不变并可正常运行
2025-10-31 21:03:24 +08:00

16 lines
190 B
Go

package main
type Product struct {
Name, Category string
Price float64
}
type Customer struct {
Name, City string
}
type Payment struct {
Currency string
Amount float64
}